sed—Stream-oriented editor

sed [ -hnV ][-e script ][-f script-file ][–help ][–quiet ][–silent ][–version][–expression=script ][–file=script-file ][file … ]

sed reads the specified files or the standard input if no files are specified, makes editing changes according to a list of commands, and writes the results to the standard output.


Options Description
-h, –help Print a usage message on standard output and exit successfully.
-n, –quiet, –silent Suppress the default output. sed only displays lines explicitly specified for output with the p command or the p flag of the s command. The default behavior is to echo each line of input, after edits, to the standard output.
-V, –version Print the version number on the standard output and exit successfully.
-e script, –expression=script Append one or more commands specified in the string script to the list of commands. If there is just one -e option and no -f options, the -e flag may be omitted.
-f script-file, –file=script-file Append the editing commands from script-file to the list of commands.

Multiple -e and -f commands may be specified. Scripts are added to the list of commands to execute in the order specified, regardless of their origin.

If You Like What We Do Here On LinuxConcept, You Should Consider:

Stay Connected to: Twitter | Facebook

Subscribe to our email updates: Sign Up Now


We are thankful for your support.

Follow me