sed Examples

sed Examples

sed - stream editor for filtering and transforming text 

sed [OPTION]... {script-only-if-no-other-script} [input-file]... 

-n: supress automatic printing of pattern space
-e: <script>: add script to the commands to be executed
-f: <script-file>: run commands in <script-file>
-i: edit file inplace
-E: use extended regexs
for further information see the manual page sed(1)

all examples assembled by andreas schmidt for the IC3K 2022 conference