![]() |
|
|
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 |
| How to compare the dates.. | suri.tyson | Shell Programming and Scripting | 4 | 10-22-2008 01:13 PM |
| compare dates... | i_priyank | Shell Programming and Scripting | 3 | 09-21-2007 01:50 AM |
| compare dates | ragha81 | Shell Programming and Scripting | 2 | 11-01-2006 06:17 PM |
| How to compare two dates | bankpro | High Level Programming | 5 | 01-24-2006 04:07 AM |
| compare two dates | wchen | Shell Programming and Scripting | 6 | 10-24-2002 05:39 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Compare dates
Need to find all records where date in one filed is greater than date in other. Input: Code:
ABC 2 Filed3 CDG * X 20080903 20081031 180.00 ABD 2 Filed3 CDG * X 20081101 20081031 190.00 ABE 2 Filed3 CDG * X 20090903 20081031 120.00 ABC 2 Filed3 CDG * X 20080903 20081015 130.00 Output: Code:
ABD 2 Filed3 CDG * X 20081101 20081031 190.00 ABE 2 Filed3 CDG * X 20090903 20081031 120.00 So records where first date is greater than second. First date is always on 7th position, secon is always on 8th position (delimiter is blank space). Thank you. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|