perl -pi -e 's/(printf\("hello buddy..\\n"\);\s+)/$1char \*point = new char\[10\];\n/' file.txt