How do I read the first line of a file using cat?

前端 未结 11 921
渐次进展
渐次进展 2021-01-29 22:20

How do I read the first line of a file using cat?

11条回答
  •  渐次进展
    2021-01-29 22:54

    cat alone may not be possible, but if you don't want to use head this works:

     cat  | awk 'NR == 1'
    

提交回复
热议问题