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?
(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 ...)
Father, forgive me, for I have sinned ... ;-))find /your/path -mtime numberofdays -exec rm -f {} \;
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:
- efficiency,
- portability and
- an almost fanatical devotion to the pope (Larry) ;-))
(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 ...)
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: (atl: plain heresy) RE: RE: RE (tilly) 1: Find files older than x days and delete them
by merlyn (Sage) on Aug 22, 2000 at 16:01 UTC | |
RE (tilly): (atl: plain heresy) RE: RE: RE (tilly) 1: Find files older than x days and delete them
by tilly (Archbishop) on Aug 22, 2000 at 16:20 UTC | |
RE: (atl: plain heresy) RE: RE: RE (tilly) 1: Find files older than x days and delete them
by OzzyOsbourne (Chaplain) on Aug 22, 2000 at 23:09 UTC | |
by jcwren (Prior) on Aug 22, 2000 at 23:19 UTC |
In Section
Craft