Grep: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
m added brackets |
||
Line 1: | Line 1: | ||
If you want to grep for two strings? say fish OR fowl in your file: | If you want to grep for two strings? say fish OR fowl in your file: | ||
$ egrep 'fish|fowl' file | $ egrep '(fish|fowl)' file |
Revision as of 08:34, 21 March 2006
If you want to grep for two strings? say fish OR fowl in your file:
$ egrep '(fish|fowl)' file