wiki/lang.sed.org
2022-07-29 15:41:17 +00:00

548 B

GNU sed

Stands for stream editor, it is a language for interfacing with text streams.

Quick pointers

  • the tool will interact with the stream per line
  • ; to denote end of expression
  • -E, --regexp-extended to use PCRE
  • s is one of the most common and extensive commands for it
printf "Hello\nThere" | sed -E -e 's/[aeiou]//g; s/[l]//g'
H
Thr