Re: example script want

1997-03-10 Thread Ronald van Loon
|"> awk '{ print } |"> /section\[xyz\]/ { print "new line of text"; }' |" |"Your version will print "new line of text" every time "section[xyz]" is |"matched anywhere in the input line. The form I gave ensures that only an |"exact match for the whole line does this. Yes, a small oversight; it shou

Re: example script want

1997-03-07 Thread Ted Harding
( Re Message From: Ronald van Loon ) > > In a message to me, Ted Harding, you wrote: > |"( Re Message From: Lawrence Chim ) > |"> > |"> Can someone provides me an example script that insert a line > |"> of text into a text file. The line should be placed below the > |"> line section[xyz] and abo

Re: example script want

1997-03-07 Thread Ronald van Loon
In a message to me, Ted Harding, you wrote: |"( Re Message From: Lawrence Chim ) |"> |"> Can someone provides me an example script that insert a line |"> of text into a text file. The line should be placed below the |"> line section[xyz] and above the line blahblahblahblah. |" |"awk ' { |" print

Re: example script want

1997-03-07 Thread Ted Harding
( Re Message From: Lawrence Chim ) > > Can someone provides me an example script that insert a line > of text into a text file. The line should be placed below the > line section[xyz] and above the line blahblahblahblah. awk ' { print $0 ; if ( $0 == "section[xyz]" ) { print "new line of tex