Eingänge:
line1 with the PATTERN that contains ( )
line2 with the PATTERN that contains ( )
lineN with the PATTERN that contains ( )
Ausgänge:
line1 with the PATTERN that contains ( ) ;
line2 with the PATTERN that contains ( ) ;
...
lineN with the PATTERN that contains ( ) ;
Ich habe es versucht:
find . -name "test.txt" -print | xargs sed -i "/PATTERN/ s/$)/); /g"
aber es hat nicht funktioniert.
-exec ... +
statt-exec ... \;
, wenn Ihr Fund es erlaubt.