|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Create a script to rmove oldest files
ok, I have never written a shell script before. What I need to do is remove the oldest files from a known directory when the hard disk is above a certain size, so that the hard disk never becomes full and the oldest data removed.
Any help would be grateful and even better if someone can code me the script |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
matts: a shell script to mail attachments from the command line | J65nko | Guides | 7 | 3rd August 2022 03:13 AM |
Cleaning Portsnap files in /var/db/portsnap/files | bram85 | FreeBSD Ports and Packages | 2 | 5th October 2009 09:54 AM |
finding files by uid | carpman | FreeBSD General | 3 | 5th February 2009 07:51 PM |
Tried to create new partition using sysinstall but change is not permanent | disappearedng | FreeBSD General | 7 | 6th July 2008 10:00 PM |
Source code of coreutils to create Incident Response Disk | audio | FreeBSD General | 6 | 5th July 2008 11:00 AM |