7 Interesting Linux ‘sort’ Command Examples – Part 2
7 Interesting Linux ‘sort’ Command Examples – Part 2
7 Interesting Linux ‘sort’ Command Examples ‘sort’ Command Examples in Linux
Before we continue further, create a text file ‘month.txt‘ and populate it with the data as given below.
$ echo -e "mar\ndec\noct\nsep\nfeb\naug" > month.txt $ cat month.txt
15. Sort the file ‘month.txt‘ on the basis of month order by using switch ‘M‘ (–month-sort).
$ sort -M month.txt
Important: Note that ‘sort‘…
View On WordPress

















