Created
September 29, 2019 11:33
-
-
Save lolgear/c97166efffcf86026f8d0ce5fda306a1 to your computer and use it in GitHub Desktop.
Shell command to replace tabs with spaces ( 4 count in example ) in files matching pattern ( swift files )
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
find . -name '*.swift' | perl -ple 's/ /\\ /g' | xargs perl -i -lpe 's/^\t/ /g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use instead