Re: deleteing files

Antonio Galea <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <Pine.LNX.4.44.0305071403180.6042-100000@beastieboy.uff.netwise.it>
On Wed, 7 May 2003, System wrote:

> Hello,
> 
> How do i delete files which are one month old ?
> 

Use find, more or less like that:

find STARTING_DIR -mtime +30 -exec rm -i '{}' ';'

Take a look at the man page, this is one of the best command line tools you
have on your system... 'xcept perl, maybe :-)

Ant9000

-- 
_____________________________________________________________________________
Dr. Antonio Galea       N e t   W i s e                 http://www.netwise.it
Sviluppo tecnico     Tecnologie per il Web    Tel 0461.421016 Fax 0461.426021
-----------------------------------------------------------------------------
This program is free. Which also means if it doesn't work, you don't get
your money back.
-----------------------------------------------------------------------------
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.