MAIN_PATH='/cygdrive/d/Test_Main/';
SUB_PATH='{PATTERN}Test_Sub/001/';
echo ${MAIN_PATH}
/cygdrive/d/Test_Main/
echo ${SUB_PATH}
{PATTERN}Test_Sub/001/
echo ${SUB_PATH} | sed 's/{PATTERN}/${MAIN_PATH}/g'
{MAIN_PATH}Test_Sub/001/
Мне нужно:
echo ${SUB_PATH} | sed 's/{PATTERN}/${MAIN_PATH}/g'
/cygdrive/d/Test_Main/Test_Sub/001/