[TAG] Unix

Ben Okopnik ben at linuxgazette.net
Mon Oct 8 16:22:10 MSD 2007


On Mon, Oct 08, 2007 at 09:47:33AM +0200, Paul Sephton wrote:
> On Mon, 2007-10-08 at 09:16 +0200, Terry T wrote:
> > Hie 
> > I am new UNIX.I want to copy 30 files with different names using the
> > following command.
> > 
> > ftp -i -s:filename > logfilename.log
> > The command works well.
> > 
> > My problem is to type the same command 30 times for each file name. 
> > How do I transfer all the 30 files at the same time?
> 
> MASK=*; for i in `ls $MASK`; do 

There's no advantage to this over plain old

``
for i in *; do
''


-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *




More information about the TAG mailing list