ingressi:
line1 with the PATTERN that contains ( )
line2 with the PATTERN that contains ( )
lineN with the PATTERN that contains ( )
uscite:
line1 with the PATTERN that contains ( ) ;
line2 with the PATTERN that contains ( ) ;
...
lineN with the PATTERN that contains ( ) ;
Ho provato questo:
find . -name "test.txt" -print | xargs sed -i "/PATTERN/ s/$)/); /g"
ma non ha funzionato.
-exec ... +
invece di-exec ... \;
, se la tua ricerca lo consente.