Quote:
Originally Posted by
NDxiak
...
So I'm trying to insert some extra text in to text file/lines.
w• Test-LinesXtra: INS ABC 123456 123456
w• Test-LinesXtra: INS DEF 123456 123456
w• TestLinesXtra: 123456 123456
w• TestLinesXtra: 123456 123456
I would like to insert text in in place of "INS ABC" text will be static not changing
What do you want to replace "INS ABC" with ?
Quote:
Each line will have different text to insert ...
Again, what do you want to replace "INS ABC" with ?
What do you want to replace "INS DEF" with ?
Quote:
Is there easy way to do it like ...
line 1; insert ABC after w• TestLinesXtra:
line 2; insert DEF after w• TestLinesXtra:
Do you want to replace "INS ABC" with "ABC" ? i.e. do you want to just remove "INS " ?
Do you want to replace "INS DEF" with "DEF" ? i.e. do you want to just remove "INS " ?
Quote:
Beside I did small function in perl to find and replace .. it works but I can't replace bullets "•"
Yes, but replacing bullets was not your problem !
If you review your question again, you will find that you asked to insert some text after "w• TestLinesXtra:"
Quote:
Is there easy way to do it like ...
line 1; insert ABC after w• TestLinesXtra:
line 2; insert DEF after w• TestLinesXtra:
You never mentioned you wanted to replace the bullet itself.
You may want to phrase your question properly. Or at least show the file before and after the transformation you seek.
tyler_durden