Created
April 12, 2017 19:30
-
-
Save rodolfo42/39fcebffb1ce5d796846aedd69143327 to your computer and use it in GitHub Desktop.
tabs to spaces recursive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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