[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bash quoting problems



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?


Reply to: