Created
July 2, 2018 17:38
-
-
Save ereli/3cbec2bd84de4a808f6aa00a489ac7e8 to your computer and use it in GitHub Desktop.
remove spaces from directories - fish shell
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
for file in (find . -maxdepth 1 -type d) | |
mv -- (basename $file) (string replace -a ' ' _ $file) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment