This document provides a cheat sheet for the grep command, listing options such as -i for case insensitive search, -A and -B to show lines before or after a match, -C to show lines around a match, -v to show non-matching lines, and -c to count matching lines. It also lists options like -l to only display file names, -w for exact word matching, -e for regex patterns, -a for binary files, and -r for recursive directory searches.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
254 views
Grep Command Cheatsheet
This document provides a cheat sheet for the grep command, listing options such as -i for case insensitive search, -A and -B to show lines before or after a match, -C to show lines around a match, -v to show non-matching lines, and -c to count matching lines. It also lists options like -l to only display file names, -w for exact word matching, -e for regex patterns, -a for binary files, and -r for recursive directory searches.