- 1、本文档共15页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
sed的用法(国外英文资料)
sed的用法(国外英文资料)
Sed is a non-interactive text editor that edits files or copies of files exported by standard input. The standard input may be from a keyboard, a file redirection, a string, or a variable, or a pipe file. Sed can edit small or large files at will, with many sed commands to edit, delete, and allow the work to be done. Sed deals with all changes at once, so it becomes effective, and for users, the most important thing is to save time. Sed must specify the text line to be changed by the line number and the regular expression
How to read data:
Sed from a text file or several format reads the data from the standard input, will be copied to an edit buffer, then read the command line or script is the first command, and use these commands to locate mode or edit it, repeat the process until the end of the command
Sed command:
Type commands in the command line; Insert the sed command into the script file and call sed. Insert the sed command into the script file and make the sed script executable
The sed [option] sed command enters a file with a sed command, and the actual command should be quoted
Sed [option] -f sed script file input file USES sed script file
The sed script file [option] input file the first line with sed command interpreters sed script file
The option is as follows:
Nt print; Sed does not write the edit line to the standard output, the default is to print all rows (edit and unedited), and the p command can be used to print edit lines
The next command in c is to edit the command and add this option with multiple editors
If you are calling the sed script file, use this option to notify sed a script file to support the sed command used, such as
Sed - f myscript.sed input_file here myscript. Sed is the file that supports the sed command
You can save sed by using a redirected file
Using sed to locate text in text:
X x is a row number, like 1
X, y means that the line number ranges from x to y, for example, 2, 5, from line 2 to line 5
/ pattern/quer
您可能关注的文档
最近下载
- (高清版)B 15982-2012 医院消毒卫生标准.pdf VIP
- 医院护理人员绩效考核评价制度.doc VIP
- JTG E 20-2011公路工程沥青及沥青混合料试验规程释义手册_(高清-无水印).pdf
- 初中英语新外研版七年级上册Unit 1 A new start课文讲解(2024秋).doc
- 可爱的四川 主题一:自然之美 第1课 享誉世界的超级明星-国宝大熊猫 教案.doc
- 机械安全培训PPT课件.ppt
- 昌吉市新联煤矿煤矿施工组织设计修改版.doc VIP
- 【精品课件】 苏科版信息技术五年级全一册 第3课 火柴人跳舞.ppt VIP
- ASME-B1.3-2007-个人中文翻译(仅供参考).docx VIP
- 《全面质量管理》习题集.docx VIP
文档评论(0)