Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2001 14:02:22 -0400
From:      David Hill <david@phobia.ms>
To:        so@server.i-clue.de
Cc:        gardhy@usvisanews.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: File Management...
Message-ID:  <20010712140222.6b5f1ca7.david@phobia.ms>
In-Reply-To: <3B4DE52D.2083D886@i-clue.de>
References:  <3B4DA0C9.8068.2DD41A4B@localhost> <3B4DE52D.2083D886@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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

- David

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?20010712140222.6b5f1ca7.david>