Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239306
  • 博文数量: 91
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-12 09:38
文章分类

全部博文(91)

文章存档

2017年(1)

2011年(1)

2008年(15)

2007年(74)

我的朋友

分类: LINUX

2007-08-19 16:06:41

nl:
  syntax nl [options] files
  number the lines of lines,which are concatenated in the output.but the old files don't change,it is only change in the terminate.the numbering is done for each logical page,which is defined as a header,a body,a footer.these are delimited by the special string \:\:\: , \:\:, \:,respectively.\:\:\:display the header,\:\:display the body
  parameter
  -b style
  set body numbering style to style,t by default
  -f style
  set footer number style to style,n by default
  -h style
  set header numbering style to style.n by default
  style can be in these forms
  a(A) number all lines
  t only number nonempty line(default)
  n don'
t number line
  
  suppose the file1 contains the following text
  \:\:\:
  header
  \:\:
  body
  \:
  footer
  
  illustration:
  nl -ba file1 file2;
  nl -fa file1;
 remember the sequence can'
t reverse,if do ,will wrong


阅读(475) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~