当前位置:首页 > 服务器类 > Linux服务器 > > 添加行号

添加行号

点击次数:32 次 发布日期:2008-11-29 16:48:04 作者:源代码网
源代码网推荐
源代码网推荐 awk "{no=no+1; printf"%d : %s", no, $0}" filename > filename.out

另外一个不优雅的写法:

grep -n . filename > filename.out
源代码网推荐
源代码网推荐
源代码网供稿.
网友评论 (0)
会员中心
服务器类
本站推荐
服务器类之精华