On Thu, Mar 06, 2003 at 08:58:28AM +0100, Andre Poenitz wrote:
> On Thu, Mar 06, 2003 at 08:31:51AM +0300, Munzir Taha wrote:
> > I am waiting...
>
> For what?
>
> For me to find relevant parts in 80 lines of quoted material?
>
> > > [EMAIL PROTECTED] Desktop]$ perl -pi -e 's:is:\n\\begin_inset LatexCommand
> > > \\index{is}\n\n\end_inset\n' newfile.lyx Substitution replacement not
> > > terminated at -e line 1.
>
> perl -pi -e 's:is:\n\\begin_inset LatexCommand \\index{is}\n\n\end_inset\n:'
I think it should be
perl -pi -e 's:is:$&\n\\begin_inset...'
as the previous command will delete the occurrences of 'is' in the text.
Even better:
perl -pi -e 's:\bis\b:$&\n\\begin_inset...'
to much 'is' to complete words (and not to 'this' for example).