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 David Mean » Sat, 15 Aug 1998 04:00:00


Sure:  man sort

David


> 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