How to: remove empty spaces from filenames Mar 1, 2010 6:38:30 GMT -5 Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by jamba on Mar 1, 2010 6:38:30 GMT -5 unixlab.blogspot.com/2010/02/how-to-remove-empty-spaces-in-filenames.htmlreplace single space with underscore (1:1):rename "s/ /_/g" "my mp3 collection file1.mp3"replace even multiple spaces with single underscore:rename 's/\ * /_/g' "my mp3 collection file1.mp3"