![]() |
|
|
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 |
| SUM of Backup Files | EAGL€ | Shell Programming and Scripting | 2 | 08-12-2009 04:28 AM |
| compare two files and to remove the matching lines on both the files | shellscripter | Shell Programming and Scripting | 4 | 06-20-2009 09:48 AM |
| Script to Backup files | gsiva | Shell Programming and Scripting | 6 | 03-01-2009 03:15 AM |
| Backup The Files In Unix | suprithhr | Shell Programming and Scripting | 2 | 08-15-2008 11:28 AM |
| Backup my files to DAT | jefferson | UNIX for Dummies Questions & Answers | 1 | 09-30-2007 11:13 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
remove old backup files
Code:
# find /home/shantanu -name 'my_stops*' | xargs ls -lt | head -2 The command mentioned above will list the latest 2 files having my_stops in it's name. I want to keep these 2 files. But I want to delete all other files starting with "my_stops" from the current directory. |
| Bookmarks |
| Tags |
| bash, shell |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|