Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Remove old files
rameshsrao
Posted: May 6 2005, 09:38 PM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 979
Joined: 6-May 05



I need help in removing files which havent been accessed for the last one week. I should be able to specify a directory and the script should be able to browse the subdirectories under it too and remove the files/subdirectories (if subdirectory is old, it should be removed too)!
Filespace is getting full everyday and Im having issues with that!
Appreciate help in this regard! Thanks in advance. :(
PMEmail Poster
Top
vibhor_agarwalin
Posted: May 9 2005, 04:37 AM
Quote Post


User Level: 3
***

Group: Members
Posts: 34
Member No.: 788
Joined: 1-February 05



find /path/path -mtime +7 -name xyz
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Shells & Scripting | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.4057 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: PCB Layout, CadStar :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum