La commande sort permet l'affichage d'un contenu trié.
sort
root@ubuntu:~# head -5 file.log 2019-02-09 00:00 105 2019-02-09 00:01 91 2019-02-09 00:02 113 2019-02-09 00:03 84 2019-02-09 00:04 85 root@ubuntu:~# head -5 file.log |sort -k 3n 2019-02-09 00:03 84 2019-02-09 00:04 85 2019-02-09 00:01 91 2019-02-09 00:00 105 2019-02-09 00:02 113 root@ubuntu:~# head -5 other_file.log |sort -t';' -k3 2603;72231;AR 2601;23210;AT 2710;20610;BE 753;23806;DK
root@ubuntu:~# head file.txt 10;38059 10;38036 10;38017 10;38011 10;38003 10;38956 10;38002 10;37010 10;36980 10;36977 root@ubuntu:~# head -5 file.txt |sort -t ';' -k 2n 10;38003 10;38011 10;38017 10;38036 10;38059 root@ubuntu:~# head -5 file.txt |sort -t ';' -k 2n |awk -F ';' '{print $2}' |uniq --count 1 38003 1 38011 1 38017 1 38036 1 38059