sort fixed length file

sort fixed length file

Post by Gus » Fri, 14 Aug 1998 04:00:00



Hi,

I am trying to sort a file in unix, on fields that are fixed length.
i.e. field1 - col 1 to col 4 (first 4 chars), field2 - col5 to col7 .......
This fixed length file is to be sorted by field2, field4, field7........

Any sugestions?

Thanks in advance,
Gus

 
 
 

sort fixed length file

Post by Kurt J. Lanz » Fri, 14 Aug 1998 04:00:00



> Hi,

> I am trying to sort a file in unix, on fields that are fixed length.
> i.e. field1 - col 1 to col 4 (first 4 chars), field2 - col5 to col7 .......
> This fixed length file is to be sorted by field2, field4, field7........

> Any sugestions?

"man sort" for a list of all the options, especially those for defining
how you want to sort. Sheesh, does nobody check man pages any more? I
despair.