Skip to content
masterclass Buddy

Linux & Shell · Command

sed

sed is a stream editor for filtering and transforming text. It reads files or standard input, applies a script, and writes the result to standard output.

Last updated

Syntax

sed [-n] [-e script] [-f script-file] [script-if-no-other-script] [file...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • awk
  • ed
  • grep
  • tr
  • perlre

Source: sed(1) - Linux manual page. Checked 2026-11-03.