以下の行を含むテキストファイルがあります
<property>PASSWORD_X_1</property>
<property>PASSWORD_A_2</property>
<property>PASSWORD_B_6</property>
などなど..
今、私は行を次のように変更しようとしています:
<property>{PASSWORD_X_1}</property>
<property>{PASSWORD_A_2}</property>
<property>{PASSWORD_B_6}</property>
簡単な sed 式を使用して、最初の「{」を変更できます。
sed -e '/PASSWORD/{PASSWORD/g'
「}」文字を追加する方法がわかりません。
助言がありますか..?
J