sed的用法(国外英文资料).doc

  1. 1、本文档共15页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档