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
CodePudding user response:
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.