|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Execution problems for listing files between two dates
Hi, I have a requirement as mentioned below. I have a file Start.log which is present in a directory called logs. the file is pipe delimitted as shown below e.g. file content Code:
01 | jsSeq | 2013-01-31 00:02:00 | 500 The third field is date column (YYYY-MM-DD HH24:MI:SS) and similarly i have file End.log and file pattern is as mentioned above. file content Code:
01 | jsSeqEND | 2013-01-31 00:12:31 | 3000 I would like to list the files which are present in logs directory which are modified between between the time 2013-01-31 00:02:00 and 2013-01-31 00:12:31 time. Please suggest me on this. Rgds Akshay
Last edited by vbe; 01-31-2013 at 04:39 AM.. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
You could create two dummy files with the start and end date using
touch -t and use
find -newer/-older to find all files between those dates.
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Execution Problems | teefa | Shell Programming and Scripting | 6 | 12-05-2011 06:58 PM |
| Execution Problems!! | mrhiab | Shell Programming and Scripting | 1 | 06-06-2011 02:00 AM |
| execution problems with cron | causalmodi777 | Programming | 1 | 11-25-2010 07:47 PM |
| Execution problems with crontab | alexcol | UNIX for Dummies Questions & Answers | 2 | 12-13-2008 11:56 PM |
| Recursive directory listing without listing files | psingh | UNIX for Dummies Questions & Answers | 4 | 05-10-2002 10:52 AM |
|
|