rm $(find -mtime +2) ----- Original Message ----- From: "anto" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 11:30 AM Subject: RE: [linux-admin] Script penghapus file > 2 hari
> >>-----Original Message----- > >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > >>Subject: [linux-admin] Script penghapus file > 2 hari > >>Assalamu'alaikum wr wb, > >> > >>Adakah yang pernah buat perl script yang bisa > >>menghapus file2 yang berusia di atas 2 hari ? > > man find > > find /PATH/TO/DIR -mtime +2 -type f -exec rm {} \; > > -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. > > > -- > In high school, my mom caught me with an inflatable sex doll. I told > her, "Hey, > you're the one who got me hooked with those plastic baby bottles." > -- Xavier Skinner > > Hananto L. Wibowo > [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

