@carya2, welcome to to the community!
Going forward, please use markdown code tags when posting data/code samples - the markdown code tags are described here.
I've edited your post for now.
Does it have to be sed
? If so, why?
How do you know which records need modification and which don't?