2013-06-08

Linux - How to replace white spaces in files, recursively

This statement will replace every blank space in a file name, with an underscore. For the folder you run it in, and also for files in any subfolders (any level).


find -name "* *" -type f | rename 's/ /_/g'

No comments:

Post a Comment