![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find and store files based on FileName and Modified Time | edisonantus | UNIX for Advanced & Expert Users | 2 | 02-19-2008 02:25 PM |
| Unzip files where modified time>05:00 ? | SunnyK | Shell Programming and Scripting | 3 | 11-06-2007 10:15 AM |
| Need to delete the files based on the time stamp of the file | samudha | UNIX for Dummies Questions & Answers | 2 | 06-20-2007 08:02 AM |
| Deleting file with last modified for 1 month | blesets | Shell Programming and Scripting | 4 | 07-04-2005 12:24 AM |
| Checking modified time of files | am97395331 | UNIX for Dummies Questions & Answers | 4 | 07-02-2003 11:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
deleting files based on file name and modified time
Hi,
I have some log files created in the following fashion Ex: file name modified date 1) s.log1 01-jan-08 2) s.log2 02-jan-08 3) s.log3 03-jan-08 4) s.log4 04-jan-08 Now I want to have the latest 2 logs and delete the others. Can you tell me the one liner / command/ script to do this Thanks Ammu |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|