grep (grep, rgrep, fgrep, egrep) tutorials and examples

Recursive grep and excluding directory

Recursive grep is pretty handy way to searching a pattern in a directory recursively. Sometimes it is useful to exclude a specific directory (or multiple read more

How to do recursive grep with specific file pattern

Recursive grep is pretty handy way to searching a pattern in a directory recursively. Sometimes it is useful to restrict search to specific file pattern read more

How to do grep without regex (fixed string)

Linux (or Unix) grep without any options does a regex grep on input stream. To disable regex either one can use grep -F or fgrep. read more