- Get link
- X
- Other Apps
GREP
$ grep [pattern] FILE
Searches for a pattern in a file and print all matching lines
$ grep -v [pattern] FILE
Prints all lines that do not match the pattern
$ grep [0-9] FILE
Prinst the lines that contain the numbers 0 through 9
$ grep -C 3 [pattern] FILE
Prints searched line and n lines after before the result.
STRING
$ strings FILE | grep [string]
Search human readable patterns in binary files.
Comments
Post a Comment