Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > 其他编程语言 > sed Option & Command & RE
【标  题】:sed Option & Command & RE
【关键字】:sed,Option,amp,Command,amp
【来  源】:http://blog.chinaunix.net/article.php?articleId=49113&blogId=7198

sed Option & Command & RE

Your Ad Here

nothing?

sed opting 'command' filename

command
a\      add  back
i\       insert front
d
h       copy pattern space to hold buffer 
H      add  pattern space to hold buffer 
g      反向 h
G     反向 H
-n    read next row and use next command    sed '\tony\' filename
r      file
w     file
s/RE/string/gp
g               
p                       print
x                       change pattern to  hold buffer
y                       change letter1 to letter2  (no RE)           sed '1,3y/abc/ABC' filename
option
-e    many edit
-n      
-f     file
-V    version

RE
^
$
.
*
[]
[^]
\(  \)
&      sed 's/love/**&**/p' filename
\<  \>
x\花括m\花括
x\花括m,\花括
x\花括m,n\花括

shell基础二:查找技巧,find及xargs的使用:【上一篇】
grep|egrep RE & Option:【下一篇】
【相关文章】
  • Variables Declare options
  • Complete Windows Commands List
  • 妙用Winamp音频格式转换功能
  • 设置COMMAND键功能
  • FTP命令&信息代码全解
  • AIX commands you should not leave home without
  • How to use HMC commands
  • Way & Excuse
  • Adjust LIMIT & SLEEP_TIME to suite your purpose
  • Adjust LIMIT & SLEEP_TIME to suite your purpose/ne
  • 【随机文章】
  • linux虚拟光驱
  • 不用游标从表中取出前N条记录的存储过程
  • 鬼武者3详细全攻略(2)
  • 网络工程师模拟试题
  • Cool Edit Pro录音方法及制作步骤
  • 比预想严重:FireFox现图像处理漏洞
  • Linux手机DIY.Shell应用扩展二.自动生成播放列表(E680系列)
  • 入侵日记一则
  • 直线的多边形裁剪及任意多边形互裁剪
  • IDENTITY列的一个有用操作
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.