sed "s/^somevariable=.{0,}/somevariable=$1/g" /file_path/file.suffix
sed "s/^somevariable=.*/somevariable=$1/g" /file_path/file.suffix sed里面调用变量要用双引号
sed "s/^somevariable=.{0,}/somevariable=$1/g" /file_path/file.suffix
sed "s/^somevariable=.*/somevariable=$1/g" /file_path/file.suffix sed里面调用变量要用双引号