"guerreiro-IG" <[EMAIL PROTECTED]> writes:

> alguem sabe como eu faco no joe para localizar e substituir 

Vejamos o que eu fiz para responder isso:

[root@wintermute root]# apt-get install joe
Lendo listas de pacotes... Done
Collecting File Provides... Done
Construindo �rvore de depend�ncias... Done
Os NOVOS pacotes a seguir ser�o instalados:
  joe 
0 packages upgraded, 1 newly installed, 0 removed and 1 not upgraded.
Need to get 120kB of archives. After unpacking 270kB will be used.
Get:1 http://ftp.nl.linux.org snapshot/conectiva/main joe 2.9.7-3cl [120kB]
Fetched 120kB in 6s (19,8kB/s)                                                         
                         
Executando RPM(-Uvh)...
Preparando...               ########################################### [100%]
   1:joe                    ########################################### [100%]
[root@wintermute root]# man joe

Ent�o, na tela que apareceu, digitei:

/ search

Digitei, ainda, "n" algumas vezes, at� que...

Searching for text 

       Hit ^K F to have the editor search forwards or backwards for a
       text fragment (string) for you.  You will be prompted for the
       text to search for.  After you hit Return, you are prompted to
       enter options.  You can just hit Return again to have the
       editor immediately search forwards for the text, or you can
       enter one or more of these options:

       b      Search backwards instead of forwards.

       i      Treat uppercase and lower case letters as the same when
              searching.  Normally uppercase and lowercase letters are
              considered to be different.

       nnn    (where  nnn  is a number) If you enter a number, JOE
              searches for the Nth occurrence of the text.  This is
              useful for going to specific places in files structured
              in some regular manner. 

       r      Replace  text.   If  you  enter  the  r  option,  then
              you will be further prompted for replacement text.  Each
              time the editor finds the search text, you will be
              prompted  as to  whether  you  want to replace the found
              search text with the replacement text.  You hit: y to
              replace the text and then find the next occurrence, n
              to  not  replace  this text,  but  to  then find the
              next occurrence, r to replace all of the remaining
              occurrences of the search text in the remainder of the
              file without asking for  confirmation (subject to the
              nnn option above), or ^C to stop searching and
              replacing. 

Pronto! A op��o "r" acima.

Depois, digitei "q" e:

[root@wintermute root]# rpm -e joe
[root@wintermute root]# 


Tempo total: menos de 5 minutos.
Tr�fego gerado: zero.



Op��o dois:

http://www.google.com/search?q=%2B%22search+and+replace%22+%2Bjoe&sourceid=mozilla-search&start=0&start=0

Terceiro resultado.

Procurei por "replace" com meu browser. Na segunda ocorr�ncia tinha a
resposta na tela.


Tempo total: 3 minutos (parei para responder a uma d�vida na segunda
ocorr�ncia da resposta do Google... ;o)
Tr�fego gerado: zero.



Resultado: com um pouco de esfor�o, acha-se a resposta sem incomodar
2000 pessoas na lista com algo que est� na documenta��o do programa.


Sds,
-- 
Godoy.         <[EMAIL PROTECTED]>

Assinantes em 17/09/2002: 2235
Mensagens recebidas desde 07/01/1999: 183595
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a