test also works with the newer than parm
if test file1 -nt file2; then
do something
fi
man test for all the options
-----Original Message-----
From: mbabcock [mailto:mbabcock]On Behalf Of Michael T. Babcock
Sent: Friday, June 16, 2000 11:04 AM
To: qmail list
Subject: Re: tcprules script
I need to quit answering myself ...
http://www.linuxsupportline.com/~pgp/linux/newer-0.1.tar.gz
Returns 1 if first file is newer, 2 if second is newer, 0 if neither is.
(I don't know if anyone else wanted this, but ...)
"Michael T. Babcock" wrote:
> Does anyone have a quick script to check if a given tcprules file is
> newer than the .cdb version and generate the new one if it is? I'm not
> a big shell-script person.
>
> In other words, I'll write it in C if I have to ...
--
_____/~-=##=-~\_____
-=+0+=-< Michael T. Babcock >-=+0+=-
~~~~~\_-=##=-_/~~~~~
http://www.linuxsupportline.com/~pgp/ ICQ: 4835018