On Wed, 11 Oct 2000 08:22 you wrote:
>I need to add a footer to several files in the directory
[snip]
>and move the files over to the directory

#!/bin/bash
footerfile=/path/to/footer.txt
for mailfile in `ls /path/to/messagedir/`; do
  cat $footerfile >> $mailfile
  mv $mailfile /path/to/newdir
done

-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to