26 November, 2010

sed with single quotes vs double quotes

sed with single quote doesn't understand variable (like $<var_name>), it takes it literally. Use sed with double quotes if you intend to replace variable ($<var_name>) with its value (<var_value>). Actually, it is a shell requirement.