Skip to content

Instantly share code, notes, and snippets.

@bjonord
Last active December 25, 2015 01:59
Show Gist options
  • Select an option

  • Save bjonord/6899450 to your computer and use it in GitHub Desktop.

Select an option

Save bjonord/6899450 to your computer and use it in GitHub Desktop.
Nifty terminal stuff
#Find a specific string inside a folder of files -
find . -name "*.gz" -exec zgrep --color -nH "Pattern" \{\} \; # case sensitive
find . -name "*.gz" -exec zgrep --color -iHn "Pattern" \{\} \; # case insensitive
# General grep command -
grep --color -nrH "tretti" ./*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment