Remove white space from file names

Posted by & filed under Linux, Scripting.

This is a one liner to remove white space in filenames using a linux console

# rename 'y/ /_/'  *

You could also do this the other way, remove underscore with space

# rename 'y/_//' *

Leave a Reply