I am trying to replace the text within a file with the contents of a variable $ourpath, so that a directory path is replaced.
sed -e "s/__REPLACE_THIS_PATH__/${ourpath}/" com.plex.plexconnect_daemon.bash.plist > com.plex.plexconnect_daemon.bash.plist
but when i run this, it just deletes the contents of the file, or is overwriting it with a zero length file.
any thoughts?