![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding the oldest file in a particular directory | pavan_movva | Shell Programming and Scripting | 4 | 04-08-2009 07:24 AM |
| Find Oldest file in a directory tree | rahulrathod | Shell Programming and Scripting | 25 | 01-12-2009 12:45 PM |
| Removing a file from a directory | npatel | Filesystems, Disks and Memory | 5 | 05-22-2008 10:47 AM |
| how to grep the oldest file in a directory | ericaworld | Shell Programming and Scripting | 1 | 05-29-2007 01:24 PM |
| Oldest File In A Directory | bergerj3 | UNIX for Dummies Questions & Answers | 2 | 02-27-2002 03:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Removing the oldest file in a directory
Hi all,
I need your assistance in removing the oldest file in a directory. I posted the same thread 3 days back and I got the following answer Code:
ls -1 -t | tail -1 | xargs rm So, could you please provide an option so that the above command will exclude the directories in the search. Thanks in advance for your help Pavan |
|
||||
|
Thanks a lot anbu23 for your help!!
Regards Pavan |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|