shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Scan


From: Jose NIEVIADONSKI
Subject: Re: [shell-script] Scan
Date: Tue, 17 Sep 2002 15:31:07 -0300

Oi.

Use o comando grep com a opção -q. A função desta opção é justamente
somente retornar se existe ou não o texto nos arquivos indicados


if grep -q texto arquivo1 arquivo2
then
   echo os arquivos possuem o texto
else
   echo os arquivos não possuem o texto
fi

José Augusto Martins Nieviadonski






     Para:     address@hidden
     cc:
     cco: Jose NIEVIADONSKI/HBBR/HSBC
     Assunto:  [shell-script] Scan
Alexandre <address@hidden>

17/09/2002 02:57 PM
Favor responder a shell-script           <font size=-1></font>



























Srs.

Estou precisando de um comando que procura uma determinada string em um
arquivo, caso encontre retorne verdadeiro ou falso, alguem conhece algum
comando que faça algo parecido com isso??

Valew

[]'s

Alexandre





The information contained in this e-mail is confidential. It may also be legally
privileged. If you are not the addressee you may not copy, forward, disclose
or use any part of it. If you have received this message in error, please 
delete it
and all copies from your system and notify the sender immediately by return 
e-mail.

E-mail communications cannot be guaranteed to be timely secure, error or 
virus-free.
The sender does not accept liability for any errors or omissions which arise as 
a result.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]