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 #5
Sort Command #5
Sort by
recency
|
72 Discussions
|
Please Login in order to post a comment
Why
sort -s -t
$'\t' -k 2ndoes NOT work but
sort -s -n -t $'\t' -k 2
does?To work this problem on a local system, you must ensure your input file contains tabs between fields. I pasted the text from a browser and then replaced repeated spaces with tabs using this:
A nice way to confirm that you succeeded, display the columns of text by tab delimiter and expect it to look like a pretty table:
can be managed like:
Simple One Line Code