entradas:
line1 with the PATTERN that contains ( )
line2 with the PATTERN that contains ( )
lineN with the PATTERN that contains ( )
salidas:
line1 with the PATTERN that contains ( ) ;
line2 with the PATTERN that contains ( ) ;
...
lineN with the PATTERN that contains ( ) ;
Intenté esto:
find . -name "test.txt" -print | xargs sed -i "/PATTERN/ s/$)/); /g"
Pero no funcionó.
-exec ... +
lugar de-exec ... \;
, si su búsqueda lo permite.