e.g.
/home/$USER/.config replace it with "" (empty)
Is this possible?
I think you should play a bit with sharps ## and sed:b:
Please post clearly what input you have and what output you expect, while using code tags. Recommending the people that should help you to play around with # and sed is maybe not very helpful. Did you trying to play with them so far?
File1.txt contains:
/home/$USER/Pictures
/home/$USER/Music
Find the string /home/$USER/Music and replace it with /home/$USER/Music/hello.people.mp3