Grep

From Hackepedia
Revision as of 16:35, 8 April 2006 by Franks (talk | contribs)
Jump to navigationJump to search

If you want to grep for two strings? say fish OR fowl in your file:

$ egrep '(fish|fowl)' file

To show all lines that do not start with a # (commented out):

# grep -v ^# /etc/inetd.conf