Skip to content

Instantly share code, notes, and snippets.

@mrajo
Created May 6, 2016 22:37
Show Gist options
  • Save mrajo/b2e9e1cc4da9314222e8414ecee28057 to your computer and use it in GitHub Desktop.
Save mrajo/b2e9e1cc4da9314222e8414ecee28057 to your computer and use it in GitHub Desktop.
# change ext to source file extension
# change -t argument to expand to number of spaces
find . -name '*.ext' ! -type d -exec bash -c 'unexpand --first-only -t 4 "$0" >/tmp/ex && mv /tmp/ex "$0"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment