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

Re: Dumb little utilities



I had no idea all of these existed (I have heard of zsh).  Is there anyway
of finding these things out?  Apropos won't work if you don't have them
installed?

Thanks
  -Scott


On Tue, 3 Sep 2002, Clint Adams wrote:

> And if you use zsh, you don't need to bother with mmv or rename, since
> there's zmv.
>
> > > Anyway, it's similar to the 'rename' command that someone else mentioned.
> > > It renames multiple files like converting all the files in a directory
> > > from upper to lower case
> >
> >   mmv \* \#l1
>
> zmv '(*)' '${(L)1}'
>
> > > or changing the extension of the *.c files to *.x.
> >
> >   mmv \*.c \#1.x
>
> zmv '(*).c' '$1.x'
>
> or
>
> zmv -W '*.c' '*.x'
>
> or
>
> alias ren='noglob zmv -W'
> ren *.c *.x
>
>
> I find the last preferable to the more cumbersome syntaxes of rename and
> mmv.
>
>
> --
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>



Reply to: