convert spaces

Felipe Figueiredo philsf79 at
Wed Feb 20 15:00:13 UTC 2008

On Wed 20 Feb 2008 11:40:00 Derek Broughton wrote:
> Felipe Figueiredo wrote:
> > On Wed 20 Feb 2008 04:42:43 Michael Kadzioch wrote:
> >> How to convert spaces to underscores in linux filenames
> >> I am looking for an automatic (batched) solution.
> >> 
> > 
> > rename 's/ /_/g' *
> Wow.  That was way too simple.  I hadn't ever run across "rename" before.

I use it frequently to normalize naming conventions in my mp3 collection. One 
has to know a bit of PCRE, though, so it might not be useful immediately.

But as they say, when you know regex, you can make it rain with it. :)


More information about the ubuntu-users mailing list