entradas:
line1 with the PATTERN that contains ( )
line2 with the PATTERN that contains ( )
lineN with the PATTERN that contains ( )
saídas:
line1 with the PATTERN that contains ( ) ;
line2 with the PATTERN that contains ( ) ;
...
lineN with the PATTERN that contains ( ) ;
Eu tentei isso:
find . -name "test.txt" -print | xargs sed -i "/PATTERN/ s/$)/); /g"
mas não funcionou.
-exec ... +
vez de-exec ... \;
, se sua descoberta permitir.