![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find files older than 2 hours | pt14 | AIX | 3 | 03-05-2008 09:31 AM |
| unix command/s to find files older than 2 hours in a directory | Presanna | Shell Programming and Scripting | 6 | 11-20-2007 06:22 AM |
| Deleting Files Older than 24 hours | mazhar803 | SUN Solaris | 7 | 09-27-2007 04:30 AM |
| Finding only those files older than 2 hours | mh53j_fe | UNIX for Dummies Questions & Answers | 2 | 07-01-2005 06:33 AM |
| Finding files older than 2 hours | ianf | Shell Programming and Scripting | 1 | 05-27-2002 07:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
removing files after 6 hours or older
What is the command to remove files that are generated 6 hours or older? The find and remove tells only how to remove if the file is one day old or more. Appreciate quick reply. Thanks
|
| Forum Sponsor | ||
|
|
|
#3
|
|||
|
|||
|
removing files, 6 hours or older
The files are generated automatically. Is there a way you touch the files(multiple of them) that are automatically generated without manual intervention?
|
|
#4
|
||||
|
||||
|
Check this link. The script takes as arguments the duration in nm or nh for the minutes or the hours, the directory where the files are located, and whether older files are required or newer ones.
Also, check the FAQs. The technical FAQ area has the link to this page. This has a lot of advanced uses of the find command. Please go through the substantial resources that this site has before asking common questions. |
||||
| Google The UNIX and Linux Forums |