英文字典中文字典


英文字典中文字典51ZiDian.com



中文字典辞典   英文字典 a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   z       







请输入英文单字,中文词皆可:

SED    
Stream editor.

The {Unix} stream editor. It has a powerful but cryptic
command language and is based on {regular expressions}.

There is a {GNU} version called {GNU Sed}.

[{Jargon File}]

(1994-11-03)



安装中文字典英文字典查询工具!


中文字典英文字典工具:
选择颜色:
输入中英文单字

































































英文字典中文字典相关资料:


  • command line - What is sed and what is it used for? - Ask Ubuntu
    The sed utility is a batch (noninteractive) editor The sed commands are usually stored in a script-file although you can give simple sed commands from the command line Man page for sed (GNU sed) 4 2 2 : Sed is a stream editor
  • What is the purpose of -e in sed command? - Unix Linux Stack Exchange
    In your example sed 's foo bar ' and sed -e 's foo bar ' are equivalent In both cases s foo bar is the script that is executed by sed The second option is more explicit, but that is probably not the reason that you often see -e used The reason for that is that -e makes it possible to use more than one script with the same invocation of sed
  • regular expression - Using sed to find and replace complex string . . .
    You need to quote \[ *^$ in the regular expression part of the s command and \ in the replacement part, plus newlines
  • How can I use sed to replace a multi-line string?
    GNU sed has a -z option that allows to use the syntax the OP attempted to apply Example: $ cat alpha txt This is a test Please do not be alarmed $ sed -z 's a test\nPlease do not\nbe not a test\nBe ' -i alpha txt $ cat alpha txt This is not a test Be alarmed
  • Understanding Sed command with extended RegExp
    In sed(1) you may find: sed - stream editor for filtering and transforming text and:-E, -r, --regexp-extended use extended regular expressions in the script (for portability use POSIX -E) In sed you could define, let me say, word pattern between parentheses and you could substitute them with \ (backslash) followed by a one-digit number In
  • SED: insert text after the last line? - Unix Linux Stack Exchange
    sed -i (edit file in place) '$ (when at the end of the file) s (sed command for search and replace, searches with regexp like so s findme replacewth ) so s $ ($ regex end of line) \n?> the replacewith is \n?> so replace the end of the line with (newline ?> which is a closing tag for php
  • sed - How to add a carriage return before every newline? - Unix Linux . . .
    If you want to do it with sed, you can insert a carriage return at the end of every line: sed -e 's $ \r ' file txt This replaces (s) the zero-size area right before the end of the line ($) with \r To do in-place replacement (like unix2dos does), use sed -i bak, although that is a non-standard extension - if you don't have it, use a temporary
  • bash - How do I use variables in a sed command? - Ask Ubuntu
    The shell then runs the above command sed with the next arguments (assuming pattern=bert and file=text txt): -i s,bert,Say hurrah to : \0 , text txt If file txt contains bert , the output will be:
  • Using sed to find and replace - Unix Linux Stack Exchange
    sed is the stream editor, in that you can use | (pipe) to send standard streams (STDIN and STDOUT specifically) through sed and alter them programmatically on the fly, making it a handy tool in the Unix philosophy tradition; but can edit files directly, too, using the -i parameter mentioned below Consider the following: sed -i -e 's few asd g
  • How exactly do I create a sed script and use it to edit a file?
    It is possible to use the shebang line #! usr bin sed -f - to write a sed script as a callable script EDIT: Actually that seems to depend on the implementation of sed GNU sed does not appear to support -f -, and that is what most people are probably using these days Actually, BSD sed doesn't support this either, but AIX sed does Go figure!





中文字典-英文字典  2005-2009