Home
Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Delete 3 oldest files

Tags
shell scripts

Login to Reply

 
Thread Tools Search this Thread
# 15  
Old 08-13-2018
For demonstration I have put an echo before the rm.
Remove it to really run the rm!
# 16  
Old 08-13-2018
Excellent.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Delete oldest folder based on folder named as date humble_learner Shell Programming and Scripting 3 07-31-2018 10:05 AM
Finding oldest files migurus UNIX for Advanced & Expert Users 3 07-04-2018 03:27 AM
Script needed to delete to the list of files in a directory based on last created & delete them prasadn Shell Programming and Scripting 2 03-02-2015 09:01 AM
Delete all files if another files in the same directory has a matching occurrence of a specific word kridhick Shell Programming and Scripting 7 11-19-2014 06:47 AM
Keeping oldest backup files? Calab Shell Programming and Scripting 3 06-27-2013 12:54 PM
To delete the oldest files in a file when file count in the folder exceeds 7 akshay01987 UNIX for Dummies Questions & Answers 1 10-01-2012 03:32 AM
Moving files only by oldest file one at a time chamajid Shell Programming and Scripting 2 05-21-2012 05:30 PM
Need help creating a script to FTP files to a server and then delete the files that were transfered. jmalfhs Shell Programming and Scripting 4 01-18-2012 10:55 AM
Delete all files if another files in the same directory has a matching occurence of a specific word premier_de Shell Programming and Scripting 2 11-20-2009 05:48 AM
Finding the oldest file janet Shell Programming and Scripting 5 03-23-2009 11:31 AM
delete oldest images from remote server Destined Shell Programming and Scripting 1 08-18-2008 04:49 PM
sort files by date, delete oldest, if total size bigger than scarfake Shell Programming and Scripting 2 05-21-2008 09:02 AM
Oldest files 2dumb Shell Programming and Scripting 2 05-04-2007 04:57 PM
when I try to run rm on multiple files I have problem to delete files with space umen UNIX for Dummies Questions & Answers 1 09-20-2005 04:20 AM
Oldest File In A Directory bergerj3 UNIX for Dummies Questions & Answers 2 02-27-2002 03:31 PM


All times are GMT -4. The time now is 03:15 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password