contributions:
line1 with the PATTERN that contains ( )
line2 with the PATTERN that contains ( )
lineN with the PATTERN that contains ( )
les sorties:
line1 with the PATTERN that contains ( ) ;
line2 with the PATTERN that contains ( ) ;
...
lineN with the PATTERN that contains ( ) ;
J'ai essayé ceci:
find . -name "test.txt" -print | xargs sed -i "/PATTERN/ s/$)/); /g"
mais ça n'a pas marché.
-exec ... +
lieu de-exec ... \;
, si votre découverte le permet.