  | |  | deleteing files | deleteing files 2003-05-07 - By Antonio Galea
Back 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. -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Earn $52 per hosting referral at Lunarpages.
|
|
 |