perlquestion
Seema
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.)<br>
<br>
Code I am trying to explain:<CODE>
Cutoff_date = Todays_date - 31
For each file
If creation_date < cutoff_date
delete file
End If statement
End For each loop
</CODE>
Example code:
<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`
</CODE>
With the example code..instead of -newer, I want to replace it with <CODE>-lesser</CODE> (or some sort of <CODE>less</CODE> command here). Hopefully someone can help me out! :o)<br>
~Seema