Skip to content

Instantly share code, notes, and snippets.

@daniDLL
Last active June 19, 2019 10:22
Show Gist options
  • Save daniDLL/da820ed0cdc67ff7339e2c87a530f9c8 to your computer and use it in GitHub Desktop.
Save daniDLL/da820ed0cdc67ff7339e2c87a530f9c8 to your computer and use it in GitHub Desktop.
grep GOD
Búsqueda en distintos ficheros
==============================
find . -name <patternFile> -print0 | xargs -0 grep -n -H <patternSearch>
grep -rnw '/path/to/somewhere/' -e "pattern"
Búsqueda en un string muy largo.
================================
grep -oE '.{20}<patternToSearch>.{20}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment