sidsinha has asked for the wisdom of the Perl Monks concerning the following question:
How could I do a multi sort i.e first sort by date, then sort by time, then print only the entries for todays date from the file
Below is how the file looks like:The output needs to be sorted by date first and then by time.ThanksDate Time Tag 08-13-2013 19:22:16 Yes 08-13-2013 18:22:17 No 08-13-2013 21:22:17 Yes 08-13-2013 20:22:16 Yes 08-13-2013 23:22:18 Yes 08-13-2013 22:22:17 No 08-14-2013 01:22:17 Yes 08-14-2013 00:22:18 Yes 08-14-2013 03:22:19 No 08-14-2013 02:22:18 Yes 08-14-2013 05:22:28 No 08-14-2013 04:22:29 Yes 08-14-2013 07:22:19 Yes 08-14-2013 06:22:18 Yes 08-14-2013 09:22:19 No 08-14-2013 08:22:19 Yes 08-14-2013 11:22:19 Yes 08-14-2013 10:22:20 No 08-14-2013 13:22:20 Yes 08-14-2013 12:22:20 No 08-14-2013 15:22:21 Yes 08-14-2013 14:22:20 Yes 08-14-2013 17:22:21 Yes 08-14-2013 16:22:22 No
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date plus Time sort from file
by tobyink (Canon) on Aug 15, 2013 at 07:33 UTC | |
by Laurent_R (Canon) on Aug 15, 2013 at 08:53 UTC | |
by boftx (Deacon) on Aug 15, 2013 at 09:29 UTC | |
|
Re: Date plus Time sort from file
by Anonymous Monk on Aug 15, 2013 at 01:57 UTC | |
by Anonymous Monk on Aug 15, 2013 at 03:28 UTC | |
by boftx (Deacon) on Aug 15, 2013 at 05:28 UTC | |
|
Re: Date plus Time sort from file
by soonix (Chancellor) on Aug 15, 2013 at 09:17 UTC | |
|
Re: Date plus Time sort from file
by boftx (Deacon) on Aug 15, 2013 at 09:58 UTC |