Shell / Commands

sed

English

Overview

A command for text substitution and editing via stream processing.

Details

Short for stream editor. A command that processes input line by line, performing edits such as substitution or deletion non-interactively. The basic form separates the target and replacement with slashes, as in sed 's/foo/bar/'; adding a trailing g replaces every match on the line instead of just the first.

More Linux terms