need help in perl. new to it
Hi
I need to write a perl script which takes input as follows:- perl abc.pl <input_file file1.log> <output_file file2.xml> <stringx1> <to be replaced by string y1> <stringx2> <to be replaced by string y2> .... <stringx.n> <to be replaced by string y.n> logic:- file1.log contains some lines of text. the stringx1 in file1.log gets replaced by string y1 the stringx2 in file1.log gets replaced by string y2 . . . . . . the stringxn in file1.log gets replaced by string yn the new file file2.xml is created with the modifications.. Can you please help me with this? Regards, Anurag |
Code:
#!/usr/bin/perl -w |
You're free to post what you want, of course, but he gets no benefit if you do his homework for him.
|
Quote:
'Help' usually means the person asking does SOME part of the work. |
Quote:
|
Hi troop
Thanks for the help.. this is an excellent script.. works exactly as desired.. thanks once again.. u saved me man.. Regards, Anurag |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 03:02 AM. |