e36freak 1332180573 learn Don't embed shell variables in sed, expecting a fixed string replacement (e.g. sed "s/$foo/$bar/"). It won't work... at the very least, it'll be extremely prone to bugs. Two functions written with bash/awk to get around this issue: http://auriga.kiwilight.com/~freak/%23bash/sub e36freak 1332288949 forget e36freak 1332288951 learn Don't embed shell variables in sed, expecting a fixed string replacement (e.g. sed "s/$foo/$bar/"). It won't work... at the very least, it'll be extremely prone to bugs. Some functions written with bash/awk to get around this issue: http://auriga.kiwilight.com/~freak/%23bash/sub e36freak 1332351091 forget e36freak 1332351094 learn Don't embed shell variables in sed, expecting a fixed string replacement (e.g. sed "s/$foo/$bar/"). It won't work... at best, it'll be extremely prone to bugs. See http://mywiki.wooledge.org/BashFAQ/110