![]() |
|
|
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 |
| Command for delete the directories which are older than 7 days | sridhar sivakot | HP-UX | 1 | 02-15-2008 09:11 AM |
| Removing files older than 7 days | texasoeb | UNIX for Dummies Questions & Answers | 3 | 04-20-2007 05:04 PM |
| Find files older than 5 days and remove tem after listing | ypatel6871 | UNIX for Dummies Questions & Answers | 1 | 09-05-2005 12:00 PM |
| tar files older than 30 days | wfch | UNIX for Dummies Questions & Answers | 6 | 04-19-2004 05:40 AM |
| delete files older than 7 days | lesstjm | UNIX for Dummies Questions & Answers | 1 | 11-06-2001 10:43 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need to remove files older than 30 days except directories
Hi,
I need to remove files (*.trc) which are older than 30 days from one location. My problem is there I do not want to visit any of the directories at that location. I want to search files at that particular location only (need to skip directorys at that location). maxdepth option is there in LINUX find but its not there in solaris. How can I do that? Thanks in advance. Regards, Malay Maru |
|
||||
|
Find For Mins
Hello ,
In addition to the problem , if i want to find and remove the files made in last 5 mins then what will be the command as , i have searched for many coomand but all depend upon days not time!!! KRegards, Aparna |
|
|||||
|
A solution is to use the -newer expression of the find command.
Jean-Pierre. |
![]() |
| Bookmarks |
| Tags |
| linux, mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|