Skip to content

Glossary: Command Line for IT: Bash and PowerShell

sed

Also written: sed -E, s/PATTERN/REPLACEMENT/, stream editor

The stream editor, which changes text as it passes through a pipe: s/PATTERN/REPLACEMENT/ substitutes matches, -E uses extended regex, and \1, \2 bring back captured groups. Alex uses it to turn log lines into CSV rows.

Where the book teaches it

Related terms

regular expression (regex)group-replace