I have a file that contains 7000+ lines with the first column being a European date format (though I would
prefer American, ie, 06-08-2006) and the second column being a file name.
Part of file:
2006-06-08 hwinfo-8.99-0.3.x86_64.rpm
2006-05-10 samba-3.0.9-2.1.5.i586.patch.rpm
2006-02-14 sitar-0.9.3-0.4.noarch.rpm
2006-06-08 cups-devel-1.1.20-108.22.x86_64.patch.rpm
2006-02-14 novell-zenworks-rug-7.0.0-2.i586.rpm
2006-06-08 yast2-trans-it-2.9.15-0.2.noarch.patch.rpm
2006-06-07 sysstat-5.0.1-35.4.x86_64.rpm
2006-06-28 gpg-1.2.4-68.16.x86_64.patch.rpm
2006-06-08 pdksh-5.2.14-780.4.x86_64.patch.rpm
2006-06-07 sitar-0.9.3-0.4.noarch.patch.rpm
2006-06-08 mozilla-venkman-1.7.8-5.20.x86_64.rpm
2006-06-07 xfsprogs-2.6.25-0.6.x86_64.patch.rpm
2006-02-14 yast2-core-2.9.97-0.3.i586.patch.rpm
2006-06-08 kernel-default-2.6.5-7.202.7.x86_64.rpm
2006-06-08 yast2-packagemanager-2.9.67-0.3.x86_64.rpm
2006-02-14 glibc-2.3.3-98.61.i586.rpm
2006-06-08 yast2-installation-2.9.89-0.2.noarch.rpm
2006-04-11 yast2-storage-2.9.69-0.2.i586.patch.rpm
2006-06-08 kdebase3-kdm-3.2.1-68.33.x86_64.rpm
2006-06-08 sax2-4.8-103.33.x86_64.rpm
2006-06-08 liby2util-2.9.27-0.4.x86_64.rpm
2006-06-08 nscd-2.3.3-98.61.x86_64.rpm
2006-02-23 mod_php4-core-4.3.4-43.50.i586.patch.rpm
2006-04-11 mozilla-deat-1.7.6-0.2.i586.patch.rpm
2006-06-08 php4-sysvshm-4.3.4-43.50.x86_64.patch.rpm
2006-04-11 cron-3.0.1-920.4.i586.rpm
2006-05-10 zlib-1.2.1-70.6.i586.rpm
2006-02-14 scim-tables-zh-0.4.3-1.4.i586.rpm
2006-02-14 yast2-trans-zh_CN-2.9.20-0.3.noarch.patch.rpm
2006-02-14 XFree86-server-glx-4.3.99.902-43.71.i586.patch.rpm
2006-06-08 evms-ha-2.3.3-0.40.x86_64.rpm
What I want to do is sort the file so all filenames, e.g., zlib (regardless of version) are grouped
together with the oldest version (which would be based on date) at the top (date is ascending order)
and a space separating the different groups of files. And if I could get the European date format
changed to American that would be nice too.
Example of ending file:
02-14-2006 mailman-2.1.4-83.16.3.i586.rpm
02-14-2006 mailman-2.1.4-83.21.i586.rpm
04-06-2006 mailman-2.1.4-83.24.i586.rpm
02-14-2006 mailman-2.1.4-83.16.3.i586.patch.rpm
02-14-2006 mailman-2.1.4-83.21.i586.patch.rpm
04-06-2006 mailman-2.1.4-83.24.i586.patch.rpm
06-15-2006 php4-mysql-4.3.4-43.58.i586.rpm
06-21-2006 php4-mysql-4.3.4-43.61.i586.rpm
06-15-2006 php4-mysql-4.3.4-43.58.i586.patch.rpm
06-21-2006 php4-mysql-4.3.4-43.61.i586.patch.rpm
06-15-2006 php4-mysql-4.3.4-43.58.x86_64.rpm
06-21-2006 php4-mysql-4.3.4-43.61.x86_64.rpm
06-15-2006 php4-mysql-4.3.4-43.58.x86_64.patch.rpm
06-21-2006 php4-mysql-4.3.4-43.61.x86_64.patch.rpm
...
Thanks!!!
prefer American, ie, 06-08-2006) and the second column being a file name.
Part of file:
2006-06-08 hwinfo-8.99-0.3.x86_64.rpm
2006-05-10 samba-3.0.9-2.1.5.i586.patch.rpm
2006-02-14 sitar-0.9.3-0.4.noarch.rpm
2006-06-08 cups-devel-1.1.20-108.22.x86_64.patch.rpm
2006-02-14 novell-zenworks-rug-7.0.0-2.i586.rpm
2006-06-08 yast2-trans-it-2.9.15-0.2.noarch.patch.rpm
2006-06-07 sysstat-5.0.1-35.4.x86_64.rpm
2006-06-28 gpg-1.2.4-68.16.x86_64.patch.rpm
2006-06-08 pdksh-5.2.14-780.4.x86_64.patch.rpm
2006-06-07 sitar-0.9.3-0.4.noarch.patch.rpm
2006-06-08 mozilla-venkman-1.7.8-5.20.x86_64.rpm
2006-06-07 xfsprogs-2.6.25-0.6.x86_64.patch.rpm
2006-02-14 yast2-core-2.9.97-0.3.i586.patch.rpm
2006-06-08 kernel-default-2.6.5-7.202.7.x86_64.rpm
2006-06-08 yast2-packagemanager-2.9.67-0.3.x86_64.rpm
2006-02-14 glibc-2.3.3-98.61.i586.rpm
2006-06-08 yast2-installation-2.9.89-0.2.noarch.rpm
2006-04-11 yast2-storage-2.9.69-0.2.i586.patch.rpm
2006-06-08 kdebase3-kdm-3.2.1-68.33.x86_64.rpm
2006-06-08 sax2-4.8-103.33.x86_64.rpm
2006-06-08 liby2util-2.9.27-0.4.x86_64.rpm
2006-06-08 nscd-2.3.3-98.61.x86_64.rpm
2006-02-23 mod_php4-core-4.3.4-43.50.i586.patch.rpm
2006-04-11 mozilla-deat-1.7.6-0.2.i586.patch.rpm
2006-06-08 php4-sysvshm-4.3.4-43.50.x86_64.patch.rpm
2006-04-11 cron-3.0.1-920.4.i586.rpm
2006-05-10 zlib-1.2.1-70.6.i586.rpm
2006-02-14 scim-tables-zh-0.4.3-1.4.i586.rpm
2006-02-14 yast2-trans-zh_CN-2.9.20-0.3.noarch.patch.rpm
2006-02-14 XFree86-server-glx-4.3.99.902-43.71.i586.patch.rpm
2006-06-08 evms-ha-2.3.3-0.40.x86_64.rpm
What I want to do is sort the file so all filenames, e.g., zlib (regardless of version) are grouped
together with the oldest version (which would be based on date) at the top (date is ascending order)
and a space separating the different groups of files. And if I could get the European date format
changed to American that would be nice too.
Example of ending file:
02-14-2006 mailman-2.1.4-83.16.3.i586.rpm
02-14-2006 mailman-2.1.4-83.21.i586.rpm
04-06-2006 mailman-2.1.4-83.24.i586.rpm
02-14-2006 mailman-2.1.4-83.16.3.i586.patch.rpm
02-14-2006 mailman-2.1.4-83.21.i586.patch.rpm
04-06-2006 mailman-2.1.4-83.24.i586.patch.rpm
06-15-2006 php4-mysql-4.3.4-43.58.i586.rpm
06-21-2006 php4-mysql-4.3.4-43.61.i586.rpm
06-15-2006 php4-mysql-4.3.4-43.58.i586.patch.rpm
06-21-2006 php4-mysql-4.3.4-43.61.i586.patch.rpm
06-15-2006 php4-mysql-4.3.4-43.58.x86_64.rpm
06-21-2006 php4-mysql-4.3.4-43.61.x86_64.rpm
06-15-2006 php4-mysql-4.3.4-43.58.x86_64.patch.rpm
06-21-2006 php4-mysql-4.3.4-43.61.x86_64.patch.rpm
...
Thanks!!!