The most helpful flags
to 'grep' |
Flag |
Function |
-c |
List a count of matching lines only. |
-i |
Ignore the case of the letters in the pattern. |
-l |
List filenames of files that contain the specified
pattern. |
-n |
Include line numbers |
grep -i 'AUD_SORRY_GOODBYE' *.Eve
grep -ic 'AUD_SORRY_GOODBYE' *.Eve
grep -il 'AUD_SORRY_GOODBYE' *.Eve
grep -i 'AUD_SYSTEM_ERROR_GOODBYE' *.Eve
grep -ic 'AUD_SYSTEM_ERROR_GOODBYE' *.Eve
grep -il 'AUD_SYSTEM_ERROR_GOODBYE' *.Eve
grep '|8667144409|' *.Eve
grep -c '|8667144409|' *.Eve
grep '|8667144409|' 20020320*.Eve
grep '|8667144409|' '|LogIn|' 20020320*.Eve
grep '|8667144409|' 20020320*.Eve | grep '|LogIn|'
grep '|8667144409|' 20020320*.Eve | grep '|LogIn|' | wc -l
|