file - Linux command sort issues -


i attempting sort .txt file full of data. attempt sort file first word of aa line in manner dictionary see it. (i tried sort -d) issue encounter this-

input file


100 eminem:detroit_vs._everybody.txt   100 fabolous:she_wildin'.txt   100 fetty_wap:trap_queen.txt   100 kanye_west:all_day.txt   10 asap_rocky:lord_pretty_flacko_jodye_2.txt   10 bon_iver:heavenly_father.txt   10% ed_sheeran:take_it_back.txt   10 florida_georgia_line:dirt.txt   10 jay_electronica:road_to_perdition.txt 

command: sort -d < a.txt

output


100 eminem:detroit_vs._everybody.txt   100 fabolous:she_wildin'.txt   100 fetty_wap:trap_queen.txt   100 kanye_west:all_day.txt   10 asap_rocky:lord_pretty_flacko_jodye_2.txt   10 bon_iver:heavenly_father.txt   10% ed_sheeran:take_it_back.txt   10 florida_georgia_line:dirt.txt   10 jay_electronica:road_to_perdition.txt 

no change occurs @ all. i'm working on piece of code uses data , way 10% comes in between 10 messes application.

i see


100 eminem:detroit_vs._everybody.txt   100 fabolous:she_wildin'.txt   100 fetty_wap:trap_queen.txt   100 kanye_west:all_day.txt   10 asap_rocky:lord_pretty_flacko_jodye_2.txt   10 bon_iver:heavenly_father.txt   10 florida_georgia_line:dirt.txt   10 jay_electronica:road_to_perdition.txt   10% ed_sheeran:take_it_back.txt   

in other parts of file, have similar issues not numbers, letters , words also. how do this?

$ sort -v takes account of %


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -