wiki/notebook/lang.sed.org
Gabriel Arazas 8d88983e21 Update the notebook
Not all changes are here though.
2022-01-09 12:24:55 +08: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