paulobrads
Programmer
I'm running tcpdump and piping the output into a shell script, I want to grep for a string within the packet and perform an action if I find a match.
How can I do stuff (write to file and execute a command) when a match is found?
So far I have:
#!/bin/bash
read -p 'Input:' in_stuff
grep 'ttl 64'
Cheers
How can I do stuff (write to file and execute a command) when a match is found?
So far I have:
#!/bin/bash
read -p 'Input:' in_stuff
grep 'ttl 64'
Cheers