[plug] ftp scripting?
Russell Steicke
r.steicke at bom.gov.au
Wed May 21 21:44:07 WST 2003
On Wed, May 21, 2003 at 06:34:33PM +0800, Russell Steicke wrote:
> for touchfile in touch/* ; do
> for file in ${files[*]} ; do
> if [ $touchfile = $file ] ;
> continue
> fi
> rm -f $touchfile
> done
> done
D'oh! Try this instead.
for touchfile in touch/* ; do
for file in ${files[*]} ; do
if [ $touchfile = $file ] ; then
continue 2
fi
done
rm -f $touchfile
done
--
Russell Steicke
-- Fortune says:
It appears that PL/I (and its dialects) is, or will be, the most widely
used higher level language for systems programming.
-- J. Sammet
More information about the plug
mailing list