Comments on: 14 Useful Examples of ‘Sort’ Command in Linux – Part 1 https://www.tecmint.com/sort-command-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Mon, 06 Nov 2023 07:14:01 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/sort-command-linux/comment-page-1/#comment-2099117 Mon, 06 Nov 2023 06:25:44 +0000 http://www.tecmint.com/?p=12571#comment-2099117 In reply to cschanzle.

@Cschanzie,

Thank you for the correction, I have updated the article regarding “number of links” being “hard” is much appreciated.

We’ll ensure the accurate terminology is used in the article.

]]>
By: cschanzle https://www.tecmint.com/sort-command-linux/comment-page-1/#comment-2098893 Sun, 05 Nov 2023 13:16:50 +0000 http://www.tecmint.com/?p=12571#comment-2098893 In “7. Sort the contents of file ‘lsl.txt‘ on the basis of 2nd column (which represents number of symbolic links).”

It is incorrect to say “symbolic links“. It’s the number of links, “hard” if you want to distinguish.

]]>
By: Aditya Garg https://www.tecmint.com/sort-command-linux/comment-page-1/#comment-1109430 Fri, 08 Mar 2019 05:24:33 +0000 http://www.tecmint.com/?p=12571#comment-1109430 1. A key specification like -k2 means to take all the fields from 2 to the end of the line into account. To sort by a single column, use -k2,2 as the key specification. This means to use the fields from #2 to #2, i.e. only the second field.

2. While doing something like “sort -nk5,5 table.txt“, why does the sort command remove entries with 0? (have files with size 0-should get sorted not removed)

]]>
By: dragonmouth https://www.tecmint.com/sort-command-linux/comment-page-1/#comment-1032637 Wed, 05 Sep 2018 20:10:47 +0000 http://www.tecmint.com/?p=12571#comment-1032637 The link to 7 Interesting Sort Commands does not work properly. It loads this article

There are only 10 ‘sort’ command examples. The other four entries just create files to be input to the ‘sort’ command examples.

]]>
By: Johnny Rosenberg https://www.tecmint.com/sort-command-linux/comment-page-1/#comment-944017 Sun, 03 Dec 2017 10:38:02 +0000 http://www.tecmint.com/?p=12571#comment-944017 Hi!
Just wondering why you type ”/home/$USER/” instead of just ”$HOME/”. Unnecessary typing. Just saying. :) Or am I missing something?

]]>