Fwd: sed string replacements

Marko Käning MK-MacPorts at techno.ms
Sat Jun 19 14:03:08 PDT 2010


>   sed -e "s/_VERSION_HEADER_/$VERSION_HEADER/" DOCUMENTATION
> 
> $./maker 
> sed: 1: "s/_VERSION_HEADER_/# Hi ...": unescaped newline inside substitute pattern
> 
What about escaping the $ with a backslash in front of it?! :)




More information about the macports-dev mailing list