[ILUG] Strip first three characters from filename
colm at tuatha.org
Sun Aug 10 20:21:59 IST 2008
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
More information about the ILUG