Sort tsv

A syntax that I’ve been looking up far too many times over the past few days:

sort -rnk2 -t $'\t'

Basically that’s the answer to the question “How to sort a tsv file in reverse order by the values of the second column?”.

Leave a Reply

Your email address will not be published. Required fields are marked *