Skip to content

Instantly share code, notes, and snippets.

@rodolfo42
Created April 12, 2017 19:30
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 rodolfo42/39fcebffb1ce5d796846aedd69143327 to your computer and use it in GitHub Desktop.
Save rodolfo42/39fcebffb1ce5d796846aedd69143327 to your computer and use it in GitHub Desktop.
tabs to spaces recursive
mkdir -p exp &&\
ls -1 | grep -v exp | xargs -I '@' cp -aRv @ exp/@ &&\
find * -type f | grep -e '\.\(html\|scss\|css\|js\)$' | grep -ve '^exp' |\
xargs -tn1 -I file bash -c 'expand -t 2 file > exp/file' &&\
cp -avR exp/* . &&\
rm -rf exp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment