Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active October 13, 2019 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/abfe03303d9aa65012fa6129397c61c0 to your computer and use it in GitHub Desktop.
Save Beyarz/abfe03303d9aa65012fa6129397c61c0 to your computer and use it in GitHub Desktop.
Notes

Grep notes

Find in current dir with recurs

grep "FIND" . -r

Find & replace in current dir (macOS)

grep -rl "FIND" ./ | xargs sed -i "" 's/FIND/REPLACE/g'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment