On Sat, Apr 07, 2001 at 13:45 -0600, Dan Woods wrote:
>
> Kelley Terry wrote:
> >
> > Is there a way to rename multiple files all of the format
> > q####_tif.bz2 to q####.tif.bz2 where the # represent digits. In other
> ----------
>
> For your needs, you would want something like...
> for NAME in `find www_root -name "q*tif.bz2" -type f` ; do
> mv $NAME `echo $NAME | tr '_' '.'
> done
>
> Only problem might be that *all* underscores will get changed.
so would it work with
mv $NAME 'echo $NAME | tr '_tif' '.tif'
or not?
wobo
--
GPG-Fingerprint: FE5A 0891 7027 8D1B 4E3F 73C1 AD9B D732 A698 82EE
For Public Key mailto [EMAIL PROTECTED] with Subject: GPG-Request
-------------------------------------------------------------------
ISDN4LINUX-FAQ -- Deutsch: http://www.wolf-b.de/i4l/i4lfaq-de.html