<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Logs script help .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573162#M30852</link>
    <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;I missed the last part of your question.&lt;BR /&gt;Anyway, do all the log files contain .log as the extension? Also do all the log files contain the date irrespective of the format?&lt;BR /&gt;&lt;BR /&gt;If so you could just look for files ending in *.log and containing todays date (date +%d)&lt;BR /&gt;&lt;BR /&gt;In your script are you giving the names of the logs files individually?&lt;BR /&gt;&lt;BR /&gt;-Ramesh</description>
    <pubDate>Thu, 30 Aug 2001 21:06:56 GMT</pubDate>
    <dc:creator>linuxfan</dc:creator>
    <dc:date>2001-08-30T21:06:56Z</dc:date>
    <item>
      <title>Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573158#M30848</link>
      <description>Hello, &lt;BR /&gt;I have a third part app. That creats daily log files named in such as AuditLog_2001-AUG-25.log&lt;BR /&gt;or DataPort2001_08_26.log even java_reports08282001.log. Now I have a script that rotates and clears logs such as syslog and mail.log. But It wont work for theese logs because there is not a log that theese apps are writting to. Theese are logs that already written at the end of the day. How would I go about writting a script that will rotate and compress the logs for 7 days and delete the old ones. Where I get stuck is writting a script that is smart enough to look for the files with differnt day formats. Thanks&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 20:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573158#M30848</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-30T20:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573159#M30849</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;There are quite a few scripts already available, pick your choice,&lt;BR /&gt;&lt;BR /&gt;1. logrotate.sh&lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/logrotate.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/logrotate.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2. rotatelog program by shaun Rowland (in Perl)&lt;BR /&gt;&lt;A href="http://www.interhack.net/projects/rotatelog" target="_blank"&gt;http://www.interhack.net/projects/rotatelog&lt;/A&gt;&lt;BR /&gt;(pretty nice)&lt;BR /&gt;&lt;BR /&gt;3. Rotate logs &lt;BR /&gt;&lt;A href="http://www.ginini.com.au/tools/rotatelogs/" target="_blank"&gt;http://www.ginini.com.au/tools/rotatelogs/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;Ramesh</description>
      <pubDate>Thu, 30 Aug 2001 20:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573159#M30849</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-30T20:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573160#M30850</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;Let's ignore the format of the log's names.&lt;BR /&gt;&lt;BR /&gt;Use the 'find' command to find logs that have been modified in the last 7-days, and pass their names onward to your compression script:&lt;BR /&gt;&lt;BR /&gt;# find /logdir -type f ! -name "*.Z" -mtime -7 -exec $HOME/logzipper.sh {} \;&lt;BR /&gt;&lt;BR /&gt;The "logzipper.sh" script would simply receive ( as $1) the name of the file found by the 'find' command and therein you could do anything with it you want.&lt;BR /&gt;&lt;BR /&gt;Notice that I selected only files from the hypothetical /logdir and I skipped filenames ending in "Z" (which are already compressed).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 30 Aug 2001 20:53:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573160#M30850</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-30T20:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573161#M30851</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;I tried to think of one way. If you know the directory where the log files are written, you can use this script.&lt;BR /&gt;&lt;BR /&gt;For ex YOUR_LOG_DIR is your log directory where your log files are sitting. Create a backup directory under it.&lt;BR /&gt;&lt;BR /&gt;#mkdir YOUR_LOG_DIR/backup&lt;BR /&gt;&lt;BR /&gt;Now write a small script like this&lt;BR /&gt;&lt;BR /&gt;cd YOUR_LOG_DIR&lt;BR /&gt;for i in 1 2 3 4 5 6 &lt;BR /&gt;do&lt;BR /&gt;OLD=`echo $i + 1 |bc`&lt;BR /&gt;&lt;BR /&gt;mv $YOUR_LOG_DIR/backup/AuditLog.${i} $YOUR_LOG_DIR/backup/AuditLog.${OLD}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;mv $YOUR_LOG_DIR/AuditLog* $YOUR_LOG_DIR/Auditlog.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here in this case we are not preserving the formats. Simple way. If you need to preserve the formats, you need to make it bit complicated by duplicating the format using the date file.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 21:04:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573161#M30851</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573162#M30852</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;I missed the last part of your question.&lt;BR /&gt;Anyway, do all the log files contain .log as the extension? Also do all the log files contain the date irrespective of the format?&lt;BR /&gt;&lt;BR /&gt;If so you could just look for files ending in *.log and containing todays date (date +%d)&lt;BR /&gt;&lt;BR /&gt;In your script are you giving the names of the logs files individually?&lt;BR /&gt;&lt;BR /&gt;-Ramesh</description>
      <pubDate>Thu, 30 Aug 2001 21:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573162#M30852</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-30T21:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573163#M30853</link>
      <description>Please change this&lt;BR /&gt;&lt;BR /&gt;mv $YOUR_LOG_DIR/AuditLog* $YOUR_LOG_DIR/Auditlog.1 &lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt;&lt;BR /&gt;mv $YOUR_LOG_DIR/AuditLog* $YOUR_LOG_DIR/backup/Auditlog.1&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Aug 2001 21:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573163#M30853</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573164#M30854</link>
      <description>Yes all the files end in a.log extension and the do contain the date irrespective to the format. I was thinking of doing -ot for older then but I couldnt get it to work. If I do ll&lt;BR /&gt;they do have&lt;BR /&gt;-rw-------   1 root       sys         207922 Aug 30 17:03 java_reports08302001.l&lt;BR /&gt;og&lt;BR /&gt;&lt;BR /&gt;So I was also thinking of doing a grep for the date and going from that. But I couldnt get that to work either.  I have no idea where the log files are written I just know they end up in this dir.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Thu, 30 Aug 2001 21:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573164#M30854</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-30T21:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573165#M30855</link>
      <description>Hi (again) Richard:&lt;BR /&gt;&lt;BR /&gt;Based on your last post, go back to my first suggestion and amend it to look like:&lt;BR /&gt;&lt;BR /&gt;# find /logdir -type f -name "*.log" -mtime -7 -exec $HOME/logzipper.sh {} \;&lt;BR /&gt;&lt;BR /&gt;When you run this the second time, since the "logzipper.sh" was designed to compress files in the /logdir, the 'name' argument will *not* find "*.log.Z" files.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 21:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573165#M30855</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-30T21:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573166#M30856</link>
      <description>Mr James&lt;BR /&gt;when you mean logzipper.sh you mean my existing log clear script? If so here is the one I use. And I cant get it to work with the find command that you suggested&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Cleanup logfiles (daily)&lt;BR /&gt;#&lt;BR /&gt;# Usage:&lt;BR /&gt;#&lt;BR /&gt;#   dailylogs.sh   [ DEBUG | TRACE ]&lt;BR /&gt;#&lt;BR /&gt;# where adding the word DEBUG (all caps) will&lt;BR /&gt;#   confirm the logfile operations to stdout&lt;BR /&gt;#   by showing each logfile's changes.&lt;BR /&gt;#&lt;BR /&gt;#   The word TRACE will turn on shell tracing&lt;BR /&gt;#   in all modules.&lt;BR /&gt;#&lt;BR /&gt;set -u&lt;BR /&gt;&lt;BR /&gt;MYNAME=$(basename $0)&lt;BR /&gt;DEBUG=0&lt;BR /&gt;TRACE=0&lt;BR /&gt;if [ $# -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;   case $1 in&lt;BR /&gt;    TRACE)&lt;BR /&gt;        set -x&lt;BR /&gt;        TRACE=1&lt;BR /&gt;        ;;&lt;BR /&gt;    DEBUG) &lt;BR /&gt;        DEBUG=1 &lt;BR /&gt;        ;; &lt;BR /&gt;   esac&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;#####################################################&lt;BR /&gt;function TrimLogFile&lt;BR /&gt;{&lt;BR /&gt;if [ $TRACE -eq 1 ]&lt;BR /&gt;then&lt;BR /&gt;   set -x&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;## Send over the full pathname of a logfile as MYLOGFILE&lt;BR /&gt;##    Creates $MYARCHIVES archives and zeros the original file&lt;BR /&gt;##    Does not rename the existing logfile since it is most likely&lt;BR /&gt;##    open.&lt;BR /&gt;##&lt;BR /&gt;## Example:  MYLOGFILE=/var/adm/syslog/syslog.log&lt;BR /&gt;##           MYARCHIVES=5&lt;BR /&gt;##           MYCHMOD=644&lt;BR /&gt;##           MYCHOWN=root:sys&lt;BR /&gt;## Produces:&lt;BR /&gt;##           /var/adm/syslog/syslog.log.5.Z&lt;BR /&gt;##           /var/adm/syslog/syslog.log.4.Z&lt;BR /&gt;##           /var/adm/syslog/syslog.log.3.Z&lt;BR /&gt;##           /var/adm/syslog/syslog.log.2.Z&lt;BR /&gt;##           /var/adm/syslog/syslog.log.1.Z&lt;BR /&gt;##           /var/adm/syslog/syslog.log     (zero length)&lt;BR /&gt;##&lt;BR /&gt;## If DEBUG=1 then report on the transactions&lt;BR /&gt;&lt;BR /&gt;MYDIR=$(dirname $MYLOGFILE)&lt;BR /&gt;MYLOG=$(basename $MYLOGFILE)&lt;BR /&gt;&lt;BR /&gt;# Go through the logs backwards starting with the oldest copy&lt;BR /&gt;# (defined by $MYARCHIVES)&lt;BR /&gt;&lt;BR /&gt;NEXTLOG=$MYARCHIVES&lt;BR /&gt;while [ $NEXTLOG -gt 1 ]&lt;BR /&gt;do&lt;BR /&gt;   PREVLOG=$(( NEXTLOG - 1 ))&lt;BR /&gt;&lt;BR /&gt;# If the previous log exists (logs 1 through $MYARCHIVES-1) then&lt;BR /&gt;# remove the $NEXTLOG so as to preserve the date/time/permissions&lt;BR /&gt;# of the previous file.  If the previous log does not exist, create&lt;BR /&gt;# a zero length file and set permissions per $MYCHMOD and $MYCHOWN.&lt;BR /&gt;&lt;BR /&gt;   if [ -f $MYDIR/$MYLOG.$PREVLOG.Z ]&lt;BR /&gt;   then&lt;BR /&gt;      rm -f $MYDIR/$MYLOG.$NEXTLOG.Z&lt;BR /&gt;      cp -pf $MYDIR/$MYLOG.$PREVLOG.Z $MYDIR/$MYLOG.$NEXTLOG.Z 2&amp;gt;&amp;amp;1 &amp;gt; /dev/null&lt;BR /&gt;      chmod $MYCHMOD $MYDIR/$MYLOG.$NEXTLOG.Z&lt;BR /&gt;      chown $MYCHOWN $MYDIR/$MYLOG.$NEXTLOG.Z&lt;BR /&gt;   else&lt;BR /&gt;      touch $MYDIR/$MYLOG.$PREVLOG.Z&lt;BR /&gt;      chmod $MYCHMOD $MYDIR/$MYLOG.$PREVLOG.Z&lt;BR /&gt;      chown $MYCHOWN $MYDIR/$MYLOG.$PREVLOG.Z&lt;BR /&gt;   fi&lt;BR /&gt;   NEXTLOG=$(( $NEXTLOG - 1 ))&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# Now take care of the current logfile&lt;BR /&gt;&lt;BR /&gt;rm -f $MYDIR/$MYLOG.1&lt;BR /&gt;cp -pf $MYLOGFILE $MYDIR/$MYLOG.1&lt;BR /&gt;cat /dev/null &amp;gt; $MYLOGFILE&lt;BR /&gt;compress -f $MYDIR/$MYLOG.1&lt;BR /&gt;chmod $MYCHMOD $MYDIR/$MYLOG.1.Z&lt;BR /&gt;chown $MYCHOWN $MYDIR/$MYLOG.1.Z&lt;BR /&gt;&lt;BR /&gt;if [ $DEBUG -eq 1 -o $TRACE -eq 1 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Archive $MYARCHIVES copies and zero $MYLOGFILE:"&lt;BR /&gt;   ll $MYLOGFILE&lt;BR /&gt;   if [ -f $MYLOGFILE.*.Z ]&lt;BR /&gt;   then&lt;BR /&gt;      ll $MYLOGFILE*.Z&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;##################&lt;BR /&gt;##              ##&lt;BR /&gt;## MAIN PROGRAM ##&lt;BR /&gt;##              ##&lt;BR /&gt;##################&lt;BR /&gt;&lt;BR /&gt;   MYARCHIVES=7&lt;BR /&gt;   MYCHOWN=root:sys&lt;BR /&gt;   MYCHMOD=664&lt;BR /&gt;   MYLOGFILE=/opt/java/simpletel/logs/AuditLog_200*&lt;BR /&gt;   TrimLogFile&lt;BR /&gt;&lt;BR /&gt;   MYARCHIVES=7&lt;BR /&gt;   MYCHOWN=root:sys&lt;BR /&gt;   MYCHMOD=664&lt;BR /&gt;   MYLOGFILE=/opt/java/simpletel/logs/DataPort*&lt;BR /&gt;   TrimLogFile&lt;BR /&gt;&lt;BR /&gt;   MYARCHIVES=7&lt;BR /&gt;   MYCHOWN=root:sys&lt;BR /&gt;   MYCHMOD=664&lt;BR /&gt;   MYLOGFILE=/opt/java/simpletel/logs/PINSpooler*&lt;BR /&gt;   TrimLogFile&lt;BR /&gt;&lt;BR /&gt;   MYARCHIVES=7&lt;BR /&gt;   MYCHOWN=root:sys&lt;BR /&gt;   MYCHMOD=664&lt;BR /&gt;   MYLOGFILE=/opt/java/simpletel/logs/java_invoices*&lt;BR /&gt;   TrimLogFile&lt;BR /&gt;&lt;BR /&gt;   MYARCHIVES=7&lt;BR /&gt;   MYCHOWN=root:sys&lt;BR /&gt;   MYCHMOD=664&lt;BR /&gt;   MYLOGFILE=/opt/java/simpletel/logs/java_reports*&lt;BR /&gt;   TrimLogFile&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;####End of script&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 22:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573166#M30856</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-30T22:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573167#M30857</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I modified your script, try it.&lt;BR /&gt;Most of the changes were in the main program. Also modified it to use gzip rather than compress, because gzip does a much better job of compression.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Aug 2001 00:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573167#M30857</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-31T00:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573168#M30858</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;Your 'dailylogs.sh' script handles one argument only -- DEBUG or TRACE.  Moreover, the script expects fixed names for logs. Your request is to handle filenames with variable strings, namely dates.&lt;BR /&gt;&lt;BR /&gt;I'm going to assume that your application periodically closes its log file and opens another one; hence the date portion of the filename.&lt;BR /&gt;&lt;BR /&gt;Further, since the date string in the filename identifies the "rotation", I suggest that the whole process can be this:&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/sh&lt;BR /&gt;find /logdir -type f -name "*.log" -mtime +1 -exec compress -v {} \;&lt;BR /&gt;find /logdir -type f -name "*.log.Z" -mtime +7 -exec rm -i {} \;&lt;BR /&gt;exit 0&lt;BR /&gt;#.end&lt;BR /&gt;&lt;BR /&gt;The first 'find' compresses logfiles named "*.log" in the /logdir but skips a log that's only a day old.  The 'compress' does not change the modification timestamp.  This is preserved for the ".Z" file.&lt;BR /&gt;&lt;BR /&gt;The second 'find' removes compressed logs older than seven days.  You probably want to drop the '-I' from the 'rm' after you have tested satistactorily.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 Aug 2001 02:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573168#M30858</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-31T02:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573169#M30859</link>
      <description>Mr James &lt;BR /&gt;&lt;BR /&gt;What is the differnce in &lt;BR /&gt;-mtime +7 &lt;BR /&gt;-mtime -7&lt;BR /&gt;-mtime 7&lt;BR /&gt;&lt;BR /&gt;I read the man pages but it didnt really clear thigns up for me. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Aug 2001 16:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573169#M30859</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-08-31T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573170#M30860</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;-mtime +7 will work for files having been modified in more than 7 days &lt;BR /&gt;-mtime -7 for less than 7 days &lt;BR /&gt;-mtime 7 for exactly 7 days &lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Aug 2001 16:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573170#M30860</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-31T16:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logs script help ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573171#M30861</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;From the man page for 'find', in the appropriate context, quote:&lt;BR /&gt;&lt;BR /&gt;"In the descriptions of the primaries, the argument n represents a decimal integer; +n means more than n, -n means less than n, and n&lt;BR /&gt;means exactly n."&lt;BR /&gt;&lt;BR /&gt;I'm not sure how better to phrase it.  Hence '-mtime -7' would mean to find a file modified during the last 7-days.&lt;BR /&gt;&lt;BR /&gt;I hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 Aug 2001 16:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logs-script-help/m-p/2573171#M30861</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-31T16:17:52Z</dc:date>
    </item>
  </channel>
</rss>

