'Sort' command #6 Discussions | Linux Shell | HackerRank
We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
-t$'\t': This option specifies that the field separator should be a tab character\t. The$'\t' syntax is a Bash feature that allows you to represent special characters, such as tabs, in a way that the shell can understand.
-k2n: This option tells sort to sort the file based on the numeric value of the second column. The 2 specifies the column number, and the n tells sort to sort the column numerically.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
'Sort' command #6
You are viewing a single comment's thread. Return to all comments →
-t
$'\t': This option specifies that the field separator should be a tab character
\t. The
$'\t'
syntax is a Bash feature that allows you to represent special characters, such as tabs, in a way that the shell can understand.-k2n
: This option tellssort
to sort the file based on the numeric value of the second column. The2
specifies the column number, and then
tells sort to sort the column numerically.