What I'm trying to do: Completely replace a line that contains a certain string with another line (important: the line contains special characters like ./:).
What I've got so far:
sed -r -i 's#^.*blubb.*$#blubb./123::adsf#' test
This command works and replaces the line in the file "test" that contains "blubb" with "blubb./123::adsf".
I then wanted to issue the command on multiple machines with the help of pdsh, however this attempt resulted in "unterminated `s' command":
pdsh -g serverlist 'sed -r -i 's#^.*blubb.*$#blubb./123::adsf#' test'
How can I get rid of this problem? Any help would be appreciated!