私は次のようなパターンを持っています
Fixed pattern
text which can change(world)
これと交換したい
Fixed pattern
text which can change(hello world)
私が使おうとしているもの
cat myfile | sed -e "s#\(Fixed Pattern$A_Z_a_z*\(\)#\1 hello#g > newfile
更新: 上記の単語 world も変数であり、変更されます。基本的には、式の後に最初に出現した括弧の後に hello を追加します。
前もって感謝します。