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.
'Sort' command #7
'Sort' command #7
Sort by
recency
|
32 Discussions
|
Please Login in order to post a comment
command sets the field separator to the pipe character
|
, and then sorts the file based on the values in the second column, in descending numeric order. The-k2
specifies the second column, ther
tells sort to sort in reverse order, and then
specifies that a numeric sort should be used for values in that column.sort -t$"|" -r -n -k2