I have a file with the following syntax in some_1.xyz
module some_1 { INPUT PINS OUTPUT PINS }
and I want to insert APPLY DELAYS xx and APPLY L
one-liner
perl -pi -e '/module some_1/ and $_.="APPLY DELAY xx \nAPPLY LOADS ld\n"' files*.txt