Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2068092
  • 博文数量: 178
  • 博客积分: 2076
  • 博客等级: 大尉
  • 技术积分: 2800
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-10 10:50
文章分类

全部博文(178)

文章存档

2010年(4)

2009年(13)

2008年(161)

我的朋友

分类: LINUX

2008-08-19 11:29:59

  FIRST  YOU MUST UNDSTAND  WHAT IS MEANT OF PATTERN SPACE /HOLD SPACE .THEN TRY SOME PRACTICE TO FIND OUT A WAY THAT IT IS TRULY 

AS SAME AS YOU THINK.    

       d      Delete pattern space.  Start next cycle.

 

       D      Delete  up  to  the first embedded newline in the pattern space.

              Start next cycle, but skip reading from the input  if  there  is

              still data in the pattern space.

 

       h H    Copy/append pattern space to hold space.

 

       g G    Copy/append hold space to pattern space.

 

       x      Exchange the contents of the hold and pattern spaces.

 

       l      List out the current line in a ``visually unambiguous'' form.

 

       n N    Read/append the next line of input into the pattern space.

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