e.g.
sed -e 's/text-to-search/string-to-replace-$variable-name/g'
will only replace the variable $variable-name literally rather then the pre-define value. After meddling with a few more stuff, the problem lies on ...
the quotation wrap around the search criteria. It should be double quote rather then single quote example shown above. The below code is in the correct syntax (with corrected quotation marks) :
sed -e "s/text-to-search/string-to-replace-$variable-name/g"
Shalom !!!
No comments:
Post a Comment