#!/bin/bash
cd /var/qmail/alias/pppdir.footer/new/          # go where files are
for ff in ./971259*.narada.col7.metta.lk        # select files
do
        # slap on the footer and copy to wherever
        cat $ff /var/qail/alias/footer.txt > /destination/dir/
done                                            # that's it.


hth,
kf

-- 
My recommendation: Don't shop at Explorer Micro, Columbus, Ohio.


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
= 



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

Reply via email to