want to replace the character str= "DATE_T__id" = > DATE_T__id__ref
where both DATE_T__id DATE_T and id are mutable, such as wakeup__dateid, changing to wakeup__dateid__reg
just looking for methods.
echo $str|sed -i "s/\(DATE_T\)\(w*\)/\1\2__ref/g" DATE_T__ref__id
then I tried a lot of sed-I "Splash data Tests _ (w*) / DATE_T__1__ref/g"
. sed -i "s/\(DATE_T\)\(w*\)/\2\1__ref/g"
sed -i "s/DATE_T__id/DATE_T__id__ref/g"