Bash - Find & Rename Spaces to Underscores
If you are a linux fan and don’t like spaces in file names, This is great!
- Substitute spaces for underlines globally using
rename
a Perl prog,
# sudo apt install rename
find . -name "* *" -type f | rename 's/ /_/g'
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.