Seema has asked for the wisdom of the Perl Monks concerning the following question:
I have an example code here. Though I need to create a code that needs to loop/terminate as soon as the creation_date is created the cutoff_date (less than 31days is terminated.)
Code I am trying to explain:
~Seema
Code I am trying to explain:
Example code:Cutoff_date = Todays_date - 31 For each file If creation_date < cutoff_date delete file End If statement End For each loop
With the example code..instead of -newer, I want to replace it with -lesser (or some sort of less command here). Hopefully someone can help me out! :o)#!/sbin/sh touch -t `date +"%m%d%H%M.%S"` timefile sleep 5 #sleep 5 seconds touch timefile2 echo `find ./ -type f -newer timefile`
~Seema
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Aging Script
by arturo (Vicar) on Aug 08, 2001 at 22:19 UTC | |
by Seema (Novice) on Aug 09, 2001 at 01:20 UTC | |
Re: Aging Script
by suaveant (Parson) on Aug 08, 2001 at 22:27 UTC | |
by Seema (Novice) on Aug 09, 2001 at 01:16 UTC | |
Re: Aging Script
by OzzyOsbourne (Chaplain) on Aug 08, 2001 at 22:37 UTC | |
by Seema (Novice) on Aug 09, 2001 at 01:36 UTC | |
by Seema (Novice) on Aug 09, 2001 at 01:17 UTC | |
by Seema (Novice) on Aug 09, 2001 at 23:44 UTC | |
by OzzyOsbourne (Chaplain) on Aug 10, 2001 at 17:28 UTC | |
by Seema (Novice) on Aug 10, 2001 at 22:25 UTC | |
by OzzyOsbourne (Chaplain) on Aug 10, 2001 at 22:34 UTC | |
|
Back to
Seekers of Perl Wisdom