Can we do this using sed/awk. if yes please help. I am trying to use a\ I am getting an error which says that unable to parse the message.
I used something like this and it is saying uable to parse the command.
I think you are not too far off. You don't mention your system nor sed version; some sed s insist on a newline to follow an a\ command. And, make sure that your pattern is really found in the filepath.