awk 打印行号和整行数据

来源:互联网 发布:python 2.7.9 编辑:程序博客网 时间:2024/06/05 15:01

awk '{print NR}' filename; //打印行号

awk ‘{print $0}' filename;  //打印整行

原创粉丝点击