![]() |
Software > Linux tools >
(on Wikipedia)
https://www.gnu.org/software/grep/
- There is also
egrep
andpgrep
. -
ack replaces it.
Usage ∞
Some basic examples:
cat file.txt|grep "some text" ls -al|grep -i filename
- Use
-v
for an inverted match (all lines WITHOUT) -
To find a keyword within files:
grep -r KEYWORD *
- But it doesn't tell you what files the match is in.
Last updated 2020-01-01 at 16:12:31