I want to copy the line containing www.website.com
into the line containing thetext
.
For example, I want to transform this input:
Lorem ipsum dolor sit amet, elit.
Cras eu www.website.com velit vitae
Pellentesque interdum
thetext
Sed ullamcorper tellus
into this output:
Lorem ipsum dolor sit amet, elit.
Cras eu www.website.com velit vitae
Pellentesque interdum
thetextCras eu www.website.com velit vitae
Sed ullamcorper tellus
I have no idea how to copy-paste using sed
. It looks somewhat tricky.