in reply to how to open all file one by one
That will show you every line from every *.txt file that contains the word "critical". If all you want is the list of file names, use the "-l" option:grep critical *.txt
If there's more you want to do, perl might be useful for that (or there might be another unix/linux/osx tool that does what you want...)grep -l critical *.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to open all file one by one (ack)
by Anonymous Monk on Apr 12, 2013 at 03:36 UTC | |
by GordonLim (Acolyte) on Apr 12, 2013 at 06:21 UTC |