OT - Bourne shell array sort

Mark Knoop mark at opus11.net
Sun Jul 29 16:37:00 UTC 2007


Tod wrote:
> Without having to write my own, is there a quick way I can sort a two
> dimensional array on a specific column?

Depending on the format of your data, you might be able to use 'sort -t
[field-separator] -k [column-number] file'. See 'man sort' for details.

-- 
Mark Knoop




More information about the users mailing list