On 2011-08-10 00:43, Bob McGowan wrote:
On 08/08/2011 04:43 PM, Andreas Berglund wrote:Hi! I have a problem with the following sed snippet sed -i s"|^\( *PATH="\)\(.*\)|\1$ADD:\2|" ~/profile-test I need soft quotes in order for $ADD to expand and I also need to math against one doublequote in the regexp in for $ADD to be put in the corrct place. Does anyone know how to do this?You may want to consider putting the sed script in a file and using the -f script (or --file=script) option instead.
Thanks I'll keep that in mind if I have another quoting problem :D
No quoting needed. ;)