Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bash - batch rename, remove everything after a ' ' space
- find . -type f -name "* *" -exec bash -c 'f="$1"; s="${f/_ / }"; mv -- "$f" "${s/ *./.}"' _ '{}' \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement