Date: Tue, 24 Sep 1996 17:46:25 -0600 From: Sean Kelly <kelly@fsl.noaa.gov> To: hmmm <hmmm@alaska.net> Cc: freebsd-questions <questions@FreeBSD.ORG> Subject: Re: multiple files Message-ID: <324872D1.3CDF@fsl.noaa.gov> References: <Pine.BSF.3.95.960924203341.562B-100000@hmmm.alaska.net>
next in thread | previous in thread | raw e-mail | index | archive | help
hmmm wrote: > how can i rename multiple files w/o doing it 1-by-1? > ??? (sh shell) for f in *.tar.gz; do mv $f `basename $f .tar.gz`.tgz; done -- Sean Kelly NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?324872D1.3CDF>