Created
June 2, 2013 13:35
-
-
Save t1anchen/5693672 to your computer and use it in GitHub Desktop.
Remove all white spaces of all files under current directory
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 . -type f -regex '.*\ .*' | awk '{gsub(/\(/,"\\(",$0);gsub(/\)/,"\\)",$0);gsub(/\ /,"\\ ",$0);orig_fname=$0;gsub(/ /,".",$0);system("mv -v " orig_fname " " $0)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment