![]() |
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 |
| 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 |
| files between any two given dates | thanuman | UNIX for Dummies Questions & Answers | 8 | 12-06-2007 02:16 AM |
| Files and dates | mastachef | UNIX for Dummies Questions & Answers | 1 | 12-03-2007 02:12 PM |
| list exe files modified before certain dates | fremont | UNIX for Dummies Questions & Answers | 2 | 05-25-2007 09:29 AM |
| Find number of days and list out the dates in between | Raynon | Shell Programming and Scripting | 2 | 02-12-2007 08:52 PM |
| Remove files by dates | dman110168 | UNIX for Dummies Questions & Answers | 1 | 10-25-2000 12:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Getting list of all the log files between two dates
I need to get the list of all the log files for a particular duration, say between two dates,i.e I need to get the list of all the log files between date1 and date2.The two dates are entered by the user.
The format of the log file is : /path_name/graph_name_20080801180308.log. I dont need to consider the timestamp...just need the date as the filtering criteria. |
|
||||
|
This command can get you started..
Code:
perl -ne ' print if ( $_ ge "2007/05/20 15:13" && $_ le "2007/08/19 14:31" ) ' f |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|