try this. UNTESTED.

#!/bin/bash

for file in /var/qmail/alias/pppdir.footer/new/*; do
  base=`basename $file`
  cat $file /var/qail/alias/footer.txt > /var/qmail/alias/pppdir/new/$base
  # rm $file  # move vs copy
done

charles

On Wed, 11 Oct 2000 [EMAIL PROTECTED] wrote:

> Hi 
> 
> I need to add a footer to several files in the directory
> /var/qmail/alias/pppdir.footer/new/
> 
> example of file names
> 
> 971259123.15188.narada.col7.metta.lk
> 971259379.15247.narada.col7.metta.lk
> 
> the footer is a text file in a separate directory
> /var/qail/alias/footer.txt like the below
> -- 
> http://metta.lk/ 
> ----------------- 
> 
> and move the files over to the directory
> /var/qmail/alias/pppdir/new
> 
> I would appreciate a little help on this.
> 
> The problem for me is automatically adding the footer to multiple files
> 
> I am thinking of a small script that is called by /etc/ppp/ip-down.local
> it would be executed after the person has sent mail and closed connection
> 
> thanks
> Jacob



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

Reply via email to