stdout capture anb bring to file
I want to make a script that will capture/serch for a specified string in the stdout of a program and put it in a file:
example
i give a ping command to a host and the reply with 0% pachets lost/100% pakets lost i need to put it in a file witch will b emaild to later. The problem is how can i capture that reply?
Thx in advance
PS I use pure shell script
|