Peter Rundle wrote:
>
> Terry Collins wrote:
>
> > find on one of the times(a,m,n,?) +30 - exec rm {}
>
> Sorry Terry but that answer is worse than useless. Why? because no-one else
> will
> bother to try and answer my question as it appears you've already done so, yet
> your glib off the cuff non-tested answer doesn't help at all.
Oh, I don't know. I'm sure someone will point out where it is wrong.
And I charge for tested answers. Your response reminded me why.
You got an answer because I use something similar to sort received spam
into monthly directories every so often, but I wasn't going to find the
piece of paper to copy it exactly.
> I stated in my posting that I'd read the man page on find but the manual
> listed
> the options as always referring to the files last *accessed* time, but never
> to
> the files *creation* date.
-atime n
File was last accessed n*24 hours ago.
-ctime n
File's status was last changed n*24 hours ago.
-mtime n
File's data was last modified n*24 hours ago.
Which part of the file are you actually fiddling with?
Otherwise ls -1 > some-file, then awk process the file and rm offending
files.
--
Terry Collins {:-)}}} email: terryc at woa.com.au www:
http://www.woa.com.au
Wombat Outdoor Adventures <Bicycles, Computers, GIS, Printing,
Publishing>
"People without trees are like fish without clean water"
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html