I have a file where certain (not all) lines look like so:
Sequence: n
I wish to replace n with the respective line number.
How can I do it with sed?
|
I have a file where certain (not all) lines look like so:
I wish to replace How can I do it with sed? |
|||||
|
|
It is very simple with
Regarding
The first inserts the line number in the row after "Sequence: ", the second joins the two lines. |
|||||||
|