Created
January 29, 2018 09:23
-
-
Save arcaduf/965ce5a1f2f515f7795606e93d11520a to your computer and use it in GitHub Desktop.
Convert \t into 4 spaces in each file inside a folder (and viceversa)
This file contains hidden or 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
From \t to 4 spaces: | |
find . -type f -exec sed -i.orig 's/\t/ /g' {} + | |
From 4 spaces to \t: | |
find . -type f -exec sed -i.orig 's/ /\t/g' {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment