| Raw Input
| Sed is a stream editor.
Sed is a stream editor.
Sed is a stream editor.
A stream editor is used to perform
basic text transformations on an input stream
basic text transformations on an input stream
(a file or input from a pipeline).
|
|
| Desired Output
| Sed is a stream editor.
A stream editor is used to perform
basic text transformations on an input stream
(a file or input from a pipeline).
|
|
Script and Comments
Script1 [ 1] $!N
[ 2] /^([^\n]*)\n\1$/D
[ 3] P
[ 4] D
| |
Script2 [ 1] $!N
[ 2] /^([^\n]*)\n\1$/!P
[ 3] D
| |