http://qs321.pair.com?node_id=103142

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:
Cutoff_date = Todays_date - 31 For each file If creation_date < cutoff_date delete file End If statement End For each loop
Example code:
#!/sbin/sh touch -t `date +"%m%d%H%M.%S"` timefile sleep 5 #sleep 5 seconds touch timefile2 echo `find ./ -type f -newer timefile`
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)
~Seema