perl -pi -e 's/(printf\("hello buddy..\\n"\);\s+)/$1char \*point = new + char\[10\];\n/' file.txt
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to (jeffa) Re: inserting few lines after matching a string?
by jeffa
in thread inserting few lines after matching a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |