[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] RegExp
From: |
jaugusto |
Subject: |
Re: [shell-script] RegExp |
Date: |
Thu, 21 Feb 2002 10:11:34 -0300 |
OI.
Tente a seguinte expressão regular,
'[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
fiz um teste rápido, mas deve funcionar.
[ ]'s a todos da lista
Jose Augusto Martins Nieviadonski
Analista de Suporte Consultor
HSBC Bank Brasil S.A.
Treinamento de Informática
Para: address@hidden
cc:
cco: Jose NIEVIADONSKI/HBBR/HSBC
Assunto: [shell-script] RegExp
Shell Script <address@hidden>
21/02/2002 07:55 AM
Favor responder a shell-script <font size=-1></font>
Ola Pessoal,
estou com o seguinte problema em meu script:
preciso validar um IP, e estou tentando utilizar a expressao abaixo:
grep "[0-9][0-9]?[0-9]?\.{4}" arqX
mas não funcionou!!!
Poderiam ajudar????
Obrigado!!!!
[]´s
--------------------------------------
--------------------------------------
Marcelo Brunner
address@hidden
address@hidden
Sair da lista: address@hidden
Banco Dados: http://www.egroups.com/group/shell-script
Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
http://br.yahoo.com/info/utos.html
This message and any attachments are confidential to the ordinary user of
the e-mail address to which it was addressed and may also be privileged. If
you are not the adressee you may not copy, forward, disclose or use any
part of the message or its attachments and if you have received this
message in error, please notify the sender immediately by return e-mail and
delete it from your system.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, arrive late or contain
viruses. The sender therefore does not accept liability for any errors or
omissions in the context of this message which arise as a result of
Internet transmission.
- Re: [shell-script] RegExp,
jaugusto <=