Replace some textr with sed


Can you please help me. I have some line of almost repeatebel text , and i need to insert
before smashdocs/backend/sd9934 manifests/ text.

I try to use
‘/sd/i manifests ‘ smashdocs/backend/sd9934 But it doesn’t work.

Old veriosn – smashdocs/backend/sd9934
New version -smashdocs/backend/manifests/sd9934


Don’t use insert but only replace (s):

sed -e's#smashdocs/backend/sd9934#smashdocs/backend/manifests/sd9934#g'

Replace characters by regexp as needed.

Answered By – treuss

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published