一般分隔符是/
SOURCE_TEXTdoubango DEST_TEXT=doubango2 sed -i "s/${SOURCE_TEXT}/${DEST_TEXT}/g" Makefile
如果是路径,这时可以自行定义,比如用#
SOURCE_TEXT=/home/quantum6/telecom/doubango DEST_TEXT=/home/quantum6/telecom/doubango2/doubango sed -i "s#${SOURCE_TEXT}:${DEST_TEXT}#g" Makefile