On Sun, Aug 10, 2008 at 6:59 PM, <ollie at eillo.org> wrote:
>> I have rename and come across some solutions using it (and others) on
> google but while I'm extremely comfortable on the command line i rarely need
> command this complex. I was unable to adapt any of the web solutions to my
>> How could I use rename to convert underscores in a filename to spaces?
rename 's/_/ /g' *.mp3 (convert all _ to space)
rename 's/_/ /' *.mp3 (convert only the first _ to space)
The operation of "rename" really requires familiarity with Perl regular
expressions and the regular expression operators like s// and y// There's
lots of information online about these.
Colm Buckley / colm at tuatha.org / +353 87 2469146
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!