bash one liner to take spaces out of file names in the current directory, i.e. mass rename

This commit is contained in:
Robin Clark 2019-03-24 11:22:36 +00:00 committed by GitHub
parent 21707cc825
commit fef927a855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,7 @@ alias la='ls -A'
alias l='ls -CF'
alias cb='indent -kr -l200 -lc200 -cli2 -i4 -nut -linux $1'
alias en='enscript -2 -r %E $1'
alias remove_spaces_from_file_names='for f in *\ *; do mv "$f" "${f// /_}"; done'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert