The order of regular expressions in sed replacement strings cannot always be adjusted.

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" 
         
Mar.13,2021

what does it mean that you match _ _ id with a w* ?


sed-I "s zuch zuch

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea8217-1eb4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea8217-1eb4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?