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


in reply to RE: RE (tilly) 1: Find files older than x days and delete them
in thread Find files older than x days and delete them

I know this is plain, flat heresy, especially here inside the monastry, but why use perl for this at all?
find /your/path -mtime numberofdays -exec rm -f {} \;
Father, forgive me, for I have sinned ... ;-))

Andreas

Update:

Once again I am humbly admitting that merlyn and tilly made good points (see below). So now we have three chief reasons (weapons) for a perl solution:

After this confession, shall I be free? Hey, stick away from that comfy chair ...
(do you know that feeling when you should do your already late travel and time reports for your company but keep lurking around instead? Oh boy ...)