grep command usage examples
Basic grep examples
Output all lines in someFile
file containing someText
:
grep someText somefile
Skip lines with skipText
:
grep someText somefile | grep -v skipText
Output all lines in someFile
file containing someText
:
grep someText somefile
Skip lines with skipText
:
grep someText somefile | grep -v skipText