Sort with keeping header using awk

后端 未结 0 783
小蘑菇
小蘑菇 2020-12-11 15:01

Can anyone explain this command:

awk \'NR == 1; NR > 1 {print $0 | "sort -k3"}\'

The command outputs the header and sorts the records

相关标签:
回答
  • 消灭零回复
提交回复
热议问题