On Ter, 2004-04-27 at 04:00, Andre Poenitz wrote:
An italized phrased looks like

\emph on
  phrase
\emph default

in a .lyx file. So 

   perl -pi -e 's: word :\n\\emph on\n word \n\\emph default\n:g' file.lyx

would modify file.lyx such that all occurences of 'word' will be
emphasized.

Be careful however and try a copy of your file first or use

   perl -p -e 's: word :\n\\emph on\n word \n\\emph default\n:g' file.lyx > file2.lyx

Andre'

Hi Andre
Your script worked perfectly :-)
Unfortunately, I do not understand anything about Perl and I would like to customize the script to do other kinds of changes. Could you recommend a site or book about making scripts in Perl?
Thanks a lot
Beny
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Beny Spira
Departamento de Microbiologia
Instituto de Ciências Biomédicas
Universidade de São Paulo
Av. Prof. Lineu Prestes 1374
São Paulo-SP	CEP:05508-900
Tel: 5511-3091-7347
FAX: 5511-3091-7354
E-mail: [EMAIL PROTECTED]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<<attachment: smiley-3.png>>

Reply via email to