bash expansion and variables

From thelinuxwiki
Revision as of 01:28, 12 May 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


variables in sed (and other utils)

BASH treats anything in single-quotes as a literal string, and will not try to interpolate any variables. You probably want to be using double-quotes instead.