<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Trebuchet MS" size=2>fazendo o backup deu certo sim... percebi 
também que posso fazer isso em vários arquivos simultaneamente, colocando um ao 
lado do outro (separando-os por espaço)</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>Uma dúvida:</FONT></DIV>
<DIV>
<DIV><FONT face="Trebuchet MS" size=2>como saber todos os atributos e as 
respectivas características, como:</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>-p -n -i, etc...?</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2>[]s,</FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2>Fernando</FONT></DIV></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=fernandocorrea@gmail.com 
  href="mailto:fernandocorrea@gmail.com">Fernando Oliveira</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=cascavel-pm@pm.org 
  href="mailto:cascavel-pm@pm.org">Cascavel Perl Mongers</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 04, 2007 4:44 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cascavel-pm]otimização em 
  manipulação de texto</DIV>
  <DIV><BR></DIV>vc está usando windows?! no windows, por algum motivo, ele não 
  consegue fazer isso sem backup... basta fazer o seguinte: substitua o -i por 
  -i.bkp (ou qq outro final de arquivo...) antes de substituir ele vai fazer uma 
  cópia de backup... se o nome do seu arquivo era teste.txt, o backup vai ser 
  teste.txt.bkp<BR><BR>
  <DIV><SPAN class=gmail_quote>Em 04/12/07, <B class=gmail_sendername><A 
  href="mailto:fernandolouis@terra.com.br">fernandolouis@terra.com.br</A></B> 
  &lt;<A href="mailto:fernandolouis@terra.com.br"> 
  fernandolouis@terra.com.br</A>&gt; escreveu:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV bgcolor="#ffffff">
    <DIV><FONT face="Trebuchet MS" size=2>Fernando não conhecia essa 
    solução.</FONT></DIV>
    <DIV><FONT face="Trebuchet MS" size=2>Fiz o teste e me retornou o seguinte 
    erro: Can´t do inplace edit without backup. Porque?</FONT></DIV>
    <DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face="Trebuchet MS" size=2>[]s,</FONT></DIV>
    <DIV><FONT face="Trebuchet MS" size=2>Fernando</FONT></DIV><SPAN class=q>
    <BLOCKQUOTE 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">----- 
      Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B> 
      <A title=fernandocorrea@gmail.com 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:fernandocorrea@gmail.com" target=_blank>Fernando Oliveira</A> 
      </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B> 
      <A title=cascavel-pm@pm.org 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:cascavel-pm@pm.org" target=_blank>Cascavel Perl Mongers</A> 
      </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B> 
      Tuesday, December 04, 2007 3:42 PM</DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B> 
      Re: [Cascavel-pm]otimização em manipulação de texto</DIV>
      <DIV><FONT face="Trebuchet MS" size=2></FONT><BR></DIV>perl -i -pe 
      's/$regex/$sejaLaOQueFor/g' 
    arquivo<BR><BR></BLOCKQUOTE></SPAN></DIV><BR>_______________________________________________<BR>Cascavel-pm 
    mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" 
    href="mailto:Cascavel-pm@pm.org">Cascavel-pm@pm.org</A><BR><A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="http://mail.pm.org/mailman/listinfo/cascavel-pm" 
    target=_blank>http://mail.pm.org/mailman/listinfo/cascavel-pm</A><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>[]'s Fernando 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Cascavel-pm mailing 
  list<BR>Cascavel-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/cascavel-pm</BLOCKQUOTE></BODY></HTML>