sort question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]