[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using stupid filenames in shell scripts



On Fri, May 16, 2003 at 02:41:03AM +0200, David Jardine wrote:
> On Thu, May 15, 2003 at 10:57:42PM +0100, Colin Watson wrote:
> > On Thu, May 15, 2003 at 10:57:40PM +0200, David Jardine wrote:
> > > Shouldn't that be
> > > 
> > > 	rename 'y/ /_/g' *.mpg   ?
> > 
> > Why? Firstly, y/// doesn't take a /g option (try it, or read perlop(1));
> > secondly, he asked for *.mp3 rather than *.mpg.
> 
> Yes, of course.  I'd actually never heard of the 'y' thing in 
> sed and my brain(?) had substituted 's' for it.

It might help to know that that's perl, not sed. :-)

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: