Stream Editor in practice use text editor sed – more than just search and replace
The text editor Stream Editor, or sed for short, is omnipresent – but almost always limited to the Substitute command. This is not surprising, after all, the authors themselves describe this function as Swiss army knives. But sed is so much more.
Related companies
With the Stream Editor, you can add significantly more structure to documents and the like.
(© artfoto53 – stock.adobe.com)
Sed commands are not pretty to look at, even if complex regular expressions are dispensed with – would you like an example?
sed -n -e '/X/ { H ; d } ; /Zeile/ { p ; d } ; G ; p' test
Cryptic, yes – but also useful! More about this later, but so much: this is about a sorted output of rows. Anyone who understands the sed instruction to the full, can at this point look directly at superficially less cryptic instructions such as “You lying stupid idiot! plunge.