Date: Thu, 12 Jul 2001 20:10:12 +0200 From: Christoph Sold <so@server.i-clue.de> To: David Hill <david@phobia.ms> Cc: so@server.ms-agentur.de, gardhy@usvisanews.com, freebsd-questions@FreeBSD.ORG Subject: Re: File Management... Message-ID: <3B4DE804.7B2920B0@i-clue.de> References: <3B4DA0C9.8068.2DD41A4B@localhost> <3B4DE52D.2083D886@i-clue.de> <20010712140222.6b5f1ca7.david@phobia.ms>
next in thread | previous in thread | raw e-mail | index | archive | help
David Hill schrieb:
>
> On Thu, 12 Jul 2001 19:58:05 +0200
> Christoph Sold <so@server.i-clue.de> wrote:
>
> >
> >
> > "Gardhy M. Saint-Vil" schrieb:
> > >
> > > Hello Everyone,
> > >
> > > Would anyone know how to delete files based on the date modified
> > > timestamp of files?
> >
> > find /your/path/to/clean/up -date 3 -rm
> >
> > man find is your friend.
> >
> > HTH
> > -Christoph Sold
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
> both -date and -rm are not options
>
> Try this example
>
> find /path -name *.txt -mtime argument | xargs rm -f
Apologies... went off the top of my head without looking which manpage
I'm reading. Sorry for the confusion.
Anyhow, here's the actual thingy off my BSD box:
find /path -mtime xxx -exec rm -f {} \;
Alternatively, -atime is an option, too.
Sorry for the confusion
-Christoph Sold
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B4DE804.7B2920B0>
