It's simply good practice to test your script before turning on the
rm. Since I just typed up that script untested I was in no way going to
leave the rm uncommented :)
glad it works.
charles
On Thu, 12 Oct 2000 [EMAIL PROTECTED] wrote:
>
> #footer2 by charles
> #--------------------------------
> #!/bin/bash
> for file in /var/qmail/alias/pppdir.footer/new/*; do
> base=`basename $file`
> cat $file /var/qmail/alias/footer.txt > /var/qmail/alias/pppdir3/new/$base
> rm $file
> done
> #--------------------------------
> # this script worked added the footer and removed the files correctly.
> # I do not quite understand the warning on "rm"
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list