Re: Using stupid filenames in shell scripts
On Thu, May 15, 2003 at 10:57:40PM +0200, David Jardine wrote:
> On Thu, May 15, 2003 at 04:39:52PM +0100, Colin Watson wrote:
> > Mmph, am I? Gosh.
awe has been struck at some of your comments...
> Personally I'd be inclined to use:
> >
> > rename 'y/ /_/' *.mp3
>
> Shouldn't that be
>
> rename 'y/ /_/g' *.mpg ?
hugh@nomessin:~/mp3z$ ls
hello - test.mp3 hello - test2.mp3
hugh@nomessin:~/mp3z$ rename 'y/ /_/' *.mp3
hugh@nomessin:~/mp3z$ ls
hello_-_test.mp3 hello_-_test2.mp3
works without the g, so why include?
--
Hugh
Reply to: