![]() |
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 Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| scripting problem ( KSh ) | dhananjayk | Shell Programming and Scripting | 2 | 11-20-2006 09:34 AM |
| scripting problem | bebop1111116 | Shell Programming and Scripting | 0 | 09-19-2006 08:06 PM |
| scripting problem | ust | Shell Programming and Scripting | 3 | 02-20-2005 04:12 AM |
| Scripting problem | Robin | Shell Programming and Scripting | 2 | 03-14-2003 05:45 AM |
| awk scripting problem | jinky | Shell Programming and Scripting | 2 | 05-15-2002 10:15 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
scripting problem
hI
I m very new to unix ,... I m facing an issue I have to search though a list of directorys, find all .gz files which are older than 7 days and delete that ,,, Any one knows a single command to do this .. Thnks in advance BInu |
|
|||||
|
For a single command, how about this:
Code:
find <list of directories> -name \*.gz -mtime +6 -exec echo removing {} \; rm -f {} \;
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|