![]() Suppress automatic printing of pattern space.Īdd the script script to the commands to be executed.Īdd the contents of script-file to the commands to be executed.įollow symlinks when processing in place.Įdit files in place (this makes a backup with file extension SUFFIX, if SUFFIX is supplied). The script is actually the first non-option parameter, which sed specially considers a script and not an input file if and only if none of the other options specifies a script to be executed (that is, if neither of the -e and -f options is specified). If you do not specify INPUTFILE, or if INPUTFILE is " -", sed filters the contents of the standard input. But it is sed's ability to filter text in a pipeline which particularly distinguishes it from other types of editors. While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. The sed stream editor performs basic text transformations on an input stream (a file, or input from a pipeline). GNU sed's limitations (and non-limitations).GNU extensions for escapes in regular expressions.
0 Comments
Leave a Reply. |