I have a bunch of files which contain an ascii header with a time stamp WITHIN the file, followed by a large chunck of binary data. I would like to list the files sorted by this time stamp, at the command line (bash, etc).
The file headers look similar to the following:
encoding: raw endian: big dimension: 4 sizes: 128 128 1 4 date_time: 06.02.12.18:59 user_name: Operator1 dwell_time: 4.000 ....binary data....
I would like to sort based on the "date_time" time stamp, which uses the format dd.mm.yy.hh:mm
sort --key option looks promising but all my attempts have failed. Any help is much appreciated. Thanks.