sed
Edits a file (not interactively)
sed [-n] -f script-file [file-list]
sed [-n] script [file-list]
The sed (stream editor) utility is a batch (noninteractive) editor. The sed commands are usually stored in a script-file (the first format), although you can give simple sed commands from the command line (second format). By default, sed copies lines from the file-list to standard output, editing the lines in the process. This utility selects lines to be edited by position within the file (line number) or context (pattern matching). Refer to the sed info page for complete documentation.
The sed utility takes its input from files you specify on the command line or from standard input. Unless you direct output from a sed script elsewhere, it goes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access