Skip to content

Instantly share code, notes, and snippets.

@ereli
Created July 2, 2018 17:38
Show Gist options
  • Save ereli/3cbec2bd84de4a808f6aa00a489ac7e8 to your computer and use it in GitHub Desktop.
Save ereli/3cbec2bd84de4a808f6aa00a489ac7e8 to your computer and use it in GitHub Desktop.
remove spaces from directories - fish shell
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