一、sed 中若是要引入變量,須要用雙引號 spa
sed -i "/var dbnames =/ c var dbnames = $dbnames" caculate_combinedDb.js >/dev/null 2>&1 變量