Yes, Thank you for your help - I am new to this!
I am trying to insert print statements into a log a file in front of a word that is searched. I am able to accomplish this task, by using the following small script:
script - each print statement inserted 1 by 1/manually copy.txt file/source/repeat
perl -plne 'print "i Printf(I[stdcell_pwr_check]:RAN CHECK FOR STDCELL_PWR MENU INVOKED.)" if(/fdkPowerConnectCreateFormInvoke/);' logpro.txt > logpro2.txt
(2nd insertion - copy the output.txt file - Uncomment 2nd search - comment out 1st insertion - source)
#perl -plne 'print "i Printf(I[stdcell_pwr_check]:SUCCESSFUL POWER VIAS INSERTED.)" if(/Inserted/);' logpro2.txt > logpro3.txt
(etc. etc. The above works)
Is there an easy way to stack my search/insert requests and ony source the script once?
my print insertion texts should include a \i at the start and \n; at the end. When I try to
include these, the \i is dropped and does not appear and the \n; executes and puts a new blank
line into the log file. I can use nedit to manually search my log and add these in as a solution,
but is there a way to include these in my original print statements? The new file I am creating
needs to be read into skill.