This will do it: sed -r "s/(\s*.*db_host =* *').*('.*)/\1$MYSQL_HOST\2/" your_file. The ways it's working is as follows:.
確定! 回上一頁