Skip to content

Instantly share code, notes, and snippets.

@jappy
Created March 14, 2012 19:25
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jappy/2038841 to your computer and use it in GitHub Desktop.
Save jappy/2038841 to your computer and use it in GitHub Desktop.
unix command recursive sed like search and replace that works on mac os x
# searches from ./
find . -type f|xargs perl -pi -e 's/\t/ /g'
@jappy
Copy link
Author

jappy commented Mar 14, 2012

here we are search for tabs and replacing them with 4 spaces

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