I want to replace all the expression with pattern abc + something )))
to cba)
in a file. The something in the first expression is different in all the instances. For example: change abc, ifojg)))
to cba)
; or change abc "asdf")))
to cba)
. I've tried:
sed -i 's/abc*)))/new/g' file
But it did nothing on the file. How should I modify the code? I am not familiar with the regular expression. Please explain every symbol in the answer. Thanks!
Aucun commentaire:
Enregistrer un commentaire