Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Linux file delete script
Name: Rodney Edmonds Date: January 27, 2003 at 08:09:59 Pacific OS: RedHat 8 CPU/Ram: (8) PIII 700Mhz 8GB RAM
Comment:
I need a script to delete all files older than 30 days from the current directory. Script must be recursive. ( search all folders in current dir )
Name: Dlonra Date: January 27, 2003 at 08:22:16 Pacific
Reply:
man find google advanced search linux find tutorial
0
Response Number 2
Name: Balram Adlakha Date: January 27, 2003 at 09:22:16 Pacific
Reply:
Shell scripting is quite easy, you can easily write a script such as that yourself if you can't find it...actually It may even be in the example scripts in the scripting howto on tldp.org (thats called the _advanced_ shell scripting howto i think, theres another one but that ain't good...)
0
Response Number 3
Name: David Perry Date: January 27, 2003 at 10:01:26 Pacific
Reply:
find . -type f -mtime +30 -exec rm -f {} \;
0
Response Number 4
Name: Rodney Edmonds Date: February 3, 2003 at 09:57:14 Pacific
Summary: I searched the old messages and I couldn't find an answer to my question so I'm hoping that someone can help me. I'm planning on getting a second hard drive to install linux on and I was thinking abou...
Summary: I will be building linux file server for my company soon and was wondering which distro could be the best. I also would like to use one of those "free" versons of linux distro. ...