<?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: Shell Scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594706#M33265</link>
    <description>Hai &lt;BR /&gt; &lt;BR /&gt;here we are using " -mtime +3 " to delete the file for every 3 days..&lt;BR /&gt;suppose If i want to delete the files "OLDER THAN 3 DAYS"&lt;BR /&gt;&lt;BR /&gt;what could be the option ???&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
    <pubDate>Wed, 17 Oct 2001 11:07:15 GMT</pubDate>
    <dc:creator>Rajkumar_3</dc:creator>
    <dc:date>2001-10-17T11:07:15Z</dc:date>
    <item>
      <title>Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594688#M33247</link>
      <description>Hai All,&lt;BR /&gt;&lt;BR /&gt;I created a directory called /apps ..In this directory so many files will be created daily..&lt;BR /&gt;&lt;BR /&gt;So i need to clean up only those files which starts with the letter "X_" in the /apps&lt;BR /&gt;&lt;BR /&gt;Now i want to write a shell script using environment variable...&lt;BR /&gt;&lt;BR /&gt;For Eg: &lt;BR /&gt;-------&lt;BR /&gt;&lt;BR /&gt;1)#x=/apps&lt;BR /&gt;&lt;BR /&gt;2)#vi del_file.sh&lt;BR /&gt;    &lt;BR /&gt;If $x then&lt;BR /&gt; &lt;DELETE the="" files="" for="" every="" 3="" days=""&gt;&lt;BR /&gt;else&lt;BR /&gt; &lt;STATUS to="" be="" written="" to="" syslog="" file=""&gt;&lt;BR /&gt;endif;&lt;BR /&gt;&lt;BR /&gt;3)So finally this script will be called using the CRONJOB.So it will automatically calls the DEL_FILE.sh script to delete the files..&lt;BR /&gt;&lt;BR /&gt;Condition:&lt;BR /&gt;----------&lt;BR /&gt;a) every file has to be deleted for every 3 days starting with the prefix " X_ ",&lt;BR /&gt;&lt;BR /&gt;b) And the status has to be written to syslog file automatically using the LOGGER Command...&lt;BR /&gt;&lt;BR /&gt;If i declare an environment variable like... #x=/apps&lt;BR /&gt;That variable " x " has should be used in the shell script to satisfy the conditions..&lt;BR /&gt;&lt;BR /&gt;Can any one can provide me a scipts ,,,Its urgent please...&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar&lt;/STATUS&gt;&lt;/DELETE&gt;</description>
      <pubDate>Mon, 15 Oct 2001 06:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594688#M33247</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T06:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594689#M33248</link>
      <description>Hi Rajkumar,&lt;BR /&gt;&lt;BR /&gt;Something like this should do.  This accepts either an argument or, if set and exported, the variable $X.&lt;BR /&gt;&lt;BR /&gt;==============================================&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;DIR=${X:-$1}&lt;BR /&gt;&lt;BR /&gt;if [ -z "$DIR" ] ; then&lt;BR /&gt; logger "$0 : X not set, and no argument given"&lt;BR /&gt; exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ ! -d "$DIR" ] ; then&lt;BR /&gt; logger "$0 : $DIR not found"&lt;BR /&gt; exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;COUNT=0&lt;BR /&gt;&lt;BR /&gt;find $DIR -name "X_*" -mtime +3 | while read FILE ; do&lt;BR /&gt; rm $FILE &amp;amp;&amp;amp; logger "$0 : $FILE deleted"&lt;BR /&gt; COUNT=$(expr $COUNT + 1)&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;if [ "$COUNT" -gt 0 ] ; then&lt;BR /&gt; logger "$0 : $COUNT files removed"&lt;BR /&gt;else&lt;BR /&gt; logger "$0 : No matching files found"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;Just create this script, chmod it, and put it into cron to run, say, at 3:00 every morning, e.g.:&lt;BR /&gt;&lt;BR /&gt;0 3 * * * /usr/local/bin/del_file.sh /apps&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Mon, 15 Oct 2001 06:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594689#M33248</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T06:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594690#M33249</link>
      <description>Hi Rajkumar,&lt;BR /&gt;&lt;BR /&gt;check out this..&lt;BR /&gt;&lt;BR /&gt;find /apps -name X_* &amp;gt;&amp;gt;/tmp/filesX&lt;BR /&gt;a=`cat /tmp/fileX`&lt;BR /&gt;for a in $a&lt;BR /&gt;do&lt;BR /&gt;        /usr/bin/rm $a&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;The file list which the scipts deletes remains in /tmp/fileX&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Cheers !!!&lt;BR /&gt;Mathew&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Oct 2001 06:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594690#M33249</guid>
      <dc:creator>Varghese Mathew</dc:creator>
      <dc:date>2001-10-15T06:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594691#M33250</link>
      <description>Hai Robin,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply...&lt;BR /&gt;&lt;BR /&gt;That means what i understood is if i declare the Environment variable X=/apps and exported it..&lt;BR /&gt;and then if mention this script name in the  CRONJOB it will automattically it will delete the files starting with the name X_* in the /apps directory ???&lt;BR /&gt;&lt;BR /&gt;Is my understanding is correct ????&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 07:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594691#M33250</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T07:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594692#M33251</link>
      <description>Hai Matchew,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply...&lt;BR /&gt;&lt;BR /&gt;I think yours script will run because you have hardcoded the directory name in the script where the files has to be deleted..But what i want is The script has to collect the directory name from the Environment variable and delete the files accordingly...&lt;BR /&gt;&lt;BR /&gt;Suppose the user may change the directory name then your script dosent work...&lt;BR /&gt;&lt;BR /&gt;If the user wants to change the directory he will change it in the Environment variable not in the script....&lt;BR /&gt;&lt;BR /&gt;So we have to give that compatibility..&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 07:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594692#M33251</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T07:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594693#M33252</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You'll have to either put the directory on the command line in cron, as shown in my previous reply, or source an external file and edit this accordingly.&lt;BR /&gt;&lt;BR /&gt;So near the top of the script add something like:&lt;BR /&gt;&lt;BR /&gt;. ~/.dirfile&lt;BR /&gt;&lt;BR /&gt;and in this file you'll have:&lt;BR /&gt;&lt;BR /&gt;X=/apps&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 15 Oct 2001 07:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594693#M33252</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T07:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594694#M33253</link>
      <description>Rajkumar,&lt;BR /&gt;&lt;BR /&gt;I think you want to have a generic script that takes the directory (ex /apps) and cleanout the files that startwith X_.&lt;BR /&gt;&lt;BR /&gt;#clean_it /apps&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;if [ $# -ne 1 ]&lt;BR /&gt;then&lt;BR /&gt;echo "Usage:$0 directory"&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;DIR=$1&lt;BR /&gt;&lt;BR /&gt;if [ !-d $DIR ]&lt;BR /&gt;logger "$0: No such directory"&lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;logger "$0 : `date` : started deletion"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;printdelete()&lt;BR /&gt;{&lt;BR /&gt;logger "$0: $1 is deleted"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;find $DIR -name "X_*" -mtime +3 &amp;gt;&amp;gt; /tmp/list$$&lt;BR /&gt;NUM=`wc -l /tmp/list$$|awk '{print $1}'`&lt;BR /&gt;for FILE in `cat /tmp/list$$`&lt;BR /&gt;do&lt;BR /&gt;rm $FILE&lt;BR /&gt;printdelete $FILE&lt;BR /&gt;done&lt;BR /&gt;logger "$0: `date` : End deletion of $NUM files"&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Oct 2001 07:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594694#M33253</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-15T07:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594695#M33254</link>
      <description>Hai Robin,&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;That means i have add this "  . ~/.dirfile  " at the beginning of the file..&lt;BR /&gt;&lt;BR /&gt;If i have to immeditely test the script whether its working or not??? How can I please.. ??&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 08:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594695#M33254</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T08:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594696#M33255</link>
      <description>Hai Sridhar,&lt;BR /&gt;&lt;BR /&gt;Can you please explain me about your script step by step??&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 08:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594696#M33255</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T08:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594697#M33256</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could run it with an at job:&lt;BR /&gt;&lt;BR /&gt;at now&lt;BR /&gt;your_script&lt;BR /&gt;&lt;CTRL-D&gt;&lt;BR /&gt;&lt;BR /&gt;Create yourself another window  in which you tail the syslog:&lt;BR /&gt;&lt;BR /&gt;tail -f /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;You may want to substitute "echo" for "rm" while you are testing it, just in case.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.&lt;/CTRL-D&gt;</description>
      <pubDate>Mon, 15 Oct 2001 08:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594697#M33256</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T08:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594698#M33257</link>
      <description>Hai Robin&lt;BR /&gt;&lt;BR /&gt;I created the 2 files(X_file1.dat, X_file2.dat) in the /apps directory..&lt;BR /&gt;&lt;BR /&gt;I have set the environment variable X=/apps and i exported it #export X&lt;BR /&gt;&lt;BR /&gt;After that i run the script its displaying an error in the syslog file saying that no matching files found..&lt;BR /&gt;&lt;BR /&gt;What could be the problem???&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 08:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594698#M33257</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594699#M33258</link>
      <description>Rather than setting an environment variable and sourcing the profile, it would be better to run Robin's script passing the directory as one of the parameters.  (Remember that cron only has the minimal environment variable setting which is why you'd have to source the profile in order to read your variable.)&lt;BR /&gt;&lt;BR /&gt;So the better way to do it would be to set up the cron job as follows:&lt;BR /&gt;&lt;BR /&gt;0 3 * * * /usr/local/bin/del_file.sh /apps  &lt;BR /&gt;&lt;BR /&gt;And of course you can test it out using at, i.e.&lt;BR /&gt;&lt;BR /&gt;at now &amp;lt; /usr/local/bin/del_file.sh&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 15 Oct 2001 08:44:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594699#M33258</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-15T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594700#M33259</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It means it didn't find any files older than 3 days.  I'm not sure if that's what you're after, but if you remove the "-mtime +3", you should see it removing them this time.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 15 Oct 2001 08:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594700#M33259</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-15T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594701#M33260</link>
      <description>Raj kumar,&lt;BR /&gt;&lt;BR /&gt;The first if function checks if there is any argument passed to the script (should be like clean_it /apps) otherwise will give out syntax error.&lt;BR /&gt;&lt;BR /&gt;Next the argument ($1) is assigned to the variable DIR (here it is /apps)&lt;BR /&gt;&lt;BR /&gt;Next if condition checks if this directory is existing or not. If not, printouts the error  otherwise will start logging the deletion.&lt;BR /&gt;&lt;BR /&gt;printdelete is a function that just logs into the syslog taking an argument. For ex., printdelete X_121212 will log "clean_it : X_121212 deleted"&lt;BR /&gt;&lt;BR /&gt;Find command gets a list of all files taht start with X_ that haven't been modified since 3days. We take the number of such files using wc and assign it to NUM.&lt;BR /&gt;&lt;BR /&gt;For loop deletes all the files in the list calling the function printdelete for each file.&lt;BR /&gt;&lt;BR /&gt;At the end, we log again the completion with date and the number of files.&lt;BR /&gt;&lt;BR /&gt;YOu just need to add one more step at the end&lt;BR /&gt;&lt;BR /&gt;rm /tmp/list$$&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 15 Oct 2001 08:56:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594701#M33260</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-15T08:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594702#M33261</link>
      <description>Hai Robin,&lt;BR /&gt;&lt;BR /&gt;Instead of removing the -mtime +s in the script is there any thing that we can create files using&lt;BR /&gt;" touch " command using exactly 3 days before date to delete the files now??&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 09:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594702#M33261</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594703#M33262</link>
      <description>Hai Robin,&lt;BR /&gt;&lt;BR /&gt;I am able to run your script successfully..I eliminated the -mtime +3 and also created the files in the /apps directory using the touch command..With this command i created 10 files on 12th date.. Now Its working fine..&lt;BR /&gt;&lt;BR /&gt;Thank you very much Robin...&lt;BR /&gt;&lt;BR /&gt;Thank you very much all of you for helping me...&lt;BR /&gt;&lt;BR /&gt;Thanking you&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Mon, 15 Oct 2001 11:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594703#M33262</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-15T11:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594704#M33263</link>
      <description>Hai all,&lt;BR /&gt;&lt;BR /&gt;I have posted a old query with the new requirement please review..&lt;BR /&gt;&lt;BR /&gt;Thanking you&lt;BR /&gt;&lt;BR /&gt;Rajkumar</description>
      <pubDate>Tue, 16 Oct 2001 06:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594704#M33263</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-16T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594705#M33264</link>
      <description>I see a lot of people using a loop to delete files.   Would it not be easier to pipe the output to 'xargs rm'&lt;BR /&gt;&lt;BR /&gt;find /app -name x_* |xargs rm</description>
      <pubDate>Tue, 16 Oct 2001 07:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594705#M33264</guid>
      <dc:creator>John Flanagan</dc:creator>
      <dc:date>2001-10-16T07:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594706#M33265</link>
      <description>Hai &lt;BR /&gt; &lt;BR /&gt;here we are using " -mtime +3 " to delete the file for every 3 days..&lt;BR /&gt;suppose If i want to delete the files "OLDER THAN 3 DAYS"&lt;BR /&gt;&lt;BR /&gt;what could be the option ???&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Rajkumar</description>
      <pubDate>Wed, 17 Oct 2001 11:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594706#M33265</guid>
      <dc:creator>Rajkumar_3</dc:creator>
      <dc:date>2001-10-17T11:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594707#M33266</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;"-mtime +3" DOES mean delete if older than 3 days!!  Are you saying that you want cron to run your script every 3 days?&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 17 Oct 2001 11:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripts/m-p/2594707#M33266</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-17T11:50:36Z</dc:date>
    </item>
  </channel>
</rss>

