Grep
From Hackepedia
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
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