sort question

Aldo blinuxman at tuxfamily.org
Tue Jun 24 11:40:48 UTC 2008


Hi,

I'd like to sort, maybe cut, and redirect text lines based on the 3 or 4
last chars; is this possible? how?
I have a command like this:
sort -o out.txt -k 1,2 -b -f -i src.txt 
cat out.txt |sort |uniq >nodupes.txt 

But I'd like to replace 1,2 by the right param for sorting based on the 3 4
last chars + supressing dupes too as above.

Thax for help,

Ald0 




More information about the Blinux-list mailing list