grep file
I would like to ask if I want to grep somthing .
I know the command " ll |grep Jun" can grep file with Jun , if I want to grep file with May and Jun , what can i do ? thx |
Yes you can use grep to search through files. Read the man page..
Simple example: grep "foo" stuff - this searches for the string "foo" in the file "stuff". |
Just use the "man" command to find out things like this.
Code:
man grep Quote:
jdk |
Quote:
OR: egrep '(May|Jun)' filename AND: egrep 'May' filename | egrep 'Jun' Note the two very different meanings of the "|" operator. |
All times are GMT -5. The time now is 11:16 PM. |