How to filter lines
What is the command to filter lines that have a certain "strings" in a file?
|
Hi,
Filter as in remove or as in show? grep -v "whatever" infile -> removes all lines that contain whatever grep "whatever" infile -> show all lines that contain whatever Hope this helps. |
Quote:
|
Many utilities will do this---not just grep.
I suggest two references: Bash Guide for Beginners--free at http://tldp.org Classic Shell Scripting from O'Reilly --Any large bookstore, Amazon, etc. |
All times are GMT -5. The time now is 10:41 AM. |