'Sort' command #6 Discussions | Linux Shell | HackerRank
  • + 1 comment

    I did not know about 3.1.2.4 ANSI-C Quoting so I wrote:

    awk -F '\t' '{ print $2, $0 }'  | sort -n | awk '{ $1=""; print substr($0, 2) }'
    

    correct answer is `sort -t $'\t' -k2n

    but