Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
so basically I wish to add the couple of lines after finding the line printf("hello buddy..\n"); in the text file 'file.txt'example::func1(xop*){ int n ; printf("hello buddy..\n"); } file.txt after: example::func1(xop*){ int n; printf("hello buddy..\n"); char *point = new char[10]; printf("complete..\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: inserting few lines after matching a string?
by jeffa (Bishop) on Mar 04, 2002 at 14:10 UTC | |
|
Re: inserting few lines after matching a string?
by Juerd (Abbot) on Mar 04, 2002 at 14:02 UTC | |
|
Re: inserting few lines after matching a string?
by Spudnuts (Pilgrim) on Mar 04, 2002 at 16:06 UTC | |
|
Re: inserting few lines after matching a string?
by joealba (Hermit) on Mar 04, 2002 at 14:20 UTC |