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