I'm trying to replace a directory location with the relative location in a number of playlists ie replace "../home/keith/Music/Songs" with "..". After a bit of research I think sed could be useful.
I think the following command is what I what to use :
find /home/keith/Music/Songs/Playlists -type f -readable -writable -exec sed -i "s#../home/keith/Music/Songs#..#g"{} \;
but it fails since I'm using slashes.
Any suggestions?
Thanks
Bookmarks