bash sort from the end of string

خرید بک لینک

I want to sort file by first file, but the last character is the most important.

For example form file:

"AAAACTTTTT"                    1       2

"AAAACAAAAA"    1       2       6       4

To:

"AAAACAAAAA"    1       2       6       4

"AAAACTTTTT"                    1       2

I tried:

sort -k1,1 file

Of course it doesn't work, but I have no idea how I can do this. Could you help me? Mayby some secret flags?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 214 تاريخ: پنجشنبه 13 خرداد 1395 ساعت: 21:31

صفحه بندی