Skip to content

Instantly share code, notes, and snippets.

@airbr
Created May 11, 2017 21:54
Show Gist options
  • Save airbr/1ffc37d141c169e14316b091a796297a to your computer and use it in GitHub Desktop.
Save airbr/1ffc37d141c169e14316b091a796297a to your computer and use it in GitHub Desktop.
Personal Grep Cheatsheet
// Searches current directory recursively using extended regular expressions for Hex Codes i.e. :
// Single or double quote group+maybe a # sign+xdigits with a range of 6+ single or double quote group
grep -rE --color "(\'|\")#?[[:xdigit:]]{6,6}(\'|\")" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment