If I understand your requirements correctly, this should do it:

#for each in `ls /var/qmail/alias/pppdir.footer/new/`
>do
>cat /var/qail/alias/footer.txt >> $each
>mv $each /var/qmail/alias/pppdir/new
>done


Marco

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Bhikkhu Mettavihari" <[EMAIL PROTECTED]>
Sent: Wednesday, October 11, 2000 9:22 AM
Subject: add footer to multiple files


> 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
> 



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

Reply via email to