[EMAIL PROTECTED] said:

> date -d "1 year ago" +"%Y-%m-%d"
> Should give you what you want.

Scott,

yes, thanks again

another Q:

after I logresolve the original log, I'd like to delete the unresolved
input log file(s)
how do I asses error level of logresolve's succesfull completion before I
rm the input log ?

...
  for i in `ls` ; do
    if [ -s /home/$i/logs/$DATE-access.log ] ; then
      logresolve < /home/$i/logs/$DATE-access.log >
/home/$i/logs/$DATE-access.rog

rm /home/$i/logs/$DATE-access.log

    fi
...


-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to