D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Sort blocks of lines

 

Simon Avery wrote:

> In perl, split line into "unixdate,data\n", removing any bits you don't 
> want and push into an array, sort it, use it.

No way, whip off the date, encode it and use it as a hash key.

Steve

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html