Hi gurus,
I need a command to search all files under a directory for a word "beat" and then print another line in the same file with the word "Elapsed"
A typical file will have text like below
Item1 bottle beat
Elapsed:01:01:01
The command "find . -type f -print |xargs grep -i beat" will give all the file names which has a word "beat", how can I print the line Elapsed from the same file.
Any help is really appreciated.
Thanks,
dbadmin
I need a command to search all files under a directory for a word "beat" and then print another line in the same file with the word "Elapsed"
A typical file will have text like below
Item1 bottle beat
Elapsed:01:01:01
The command "find . -type f -print |xargs grep -i beat" will give all the file names which has a word "beat", how can I print the line Elapsed from the same file.
Any help is really appreciated.
Thanks,
dbadmin