![]() |
|
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 |
| Find the file from 15 days ago | YoungBlood | Shell Programming and Scripting | 2 | 03-03-2007 07:28 PM |
| file was created before 15 days ago. | YoungBlood | UNIX for Dummies Questions & Answers | 1 | 03-02-2007 01:23 PM |
| ls latest 4 days or specify days of files in the directory | happyv | Shell Programming and Scripting | 3 | 01-22-2007 07:16 AM |
| Need to remove files older than 30 days except directories | malaymaru | Shell Programming and Scripting | 6 | 11-13-2006 11:50 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
remove a file after 30 days
currently i am doing a project where in i am creating files everyday with a name xyz_date for e.g. xyz_20071010,xyz_20071011 ... in this fashion.so at a particular point of time i need only 31 days of data.suppose we are executing the code today then we will have only 31 days data present and 32day's data(file) will be removed.
at a particular date i need only files with today() and today()-31.today()-32 will be removed.how can i write such a script. |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|