Skip to content

Instantly share code, notes, and snippets.

@m4r00p
Last active October 10, 2018 10:35
Show Gist options
  • Save m4r00p/4465b998aff1894a1e48fdba7979a90f to your computer and use it in GitHub Desktop.
Save m4r00p/4465b998aff1894a1e48fdba7979a90f to your computer and use it in GitHub Desktop.
4 spaces to 2 spaces
find . -type f -exec sed -i.orig 's/ / /g' {} +
@m4r00p
Copy link
Author

m4r00p commented Oct 10, 2018

On mac you need to add LC_ALL=C otherwise it will throw exception sed: RE error: illegal byte sequence

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