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

Re: Multiple files



On 31 May 2002, Daniel D Jones wrote:

> How does one handle multiple files via most command line utilities?  For
> example, suppose you have a handful of perl scripts (*.pl) and you want
> to save them in the same directory with a different extension.  The
> command
> 
> cp *.pl *.bak

#!/bin/sh
ls *.pl > sources
for file in `cat sources`
do 
cp $file $file.bak
done
rm sources

-----------------------------------------------------------------------
Thomas Good                                  e-mail: tomg@sqlclinic.net
Programmer/Analyst                           phone:   (+1) 718.818.5528
Residential Services                         fax:     (+1) 718.818.5056
Behavioral Health Services, SVCMC-NY         mobile:  (+1) 917.282.7359
--                                                                   --
SQL Clinic - An Open Source Clinical Record           www.sqlclinic.net
------------------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: