[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RES: [shell-script] Comando GREP
From: |
# aurelio marinho jargas |
Subject: |
Re: RES: [shell-script] Comando GREP |
Date: |
Tue, 18 Jun 2002 19:41:21 -0300 (ART) |
ois,
fora o que o mestre julio já disse, no sed da GNU também
dá pra usar o -w:
$ grep --help | grep word
-w, --word-regexp force PATTERN to match only whole words
então fica:
grep -w test arquivo.txt
falouzz.
--- "Julio Cezar Neves escreveu:
> Inclua os delitadores da string que vc está pesquisando. Assim se vc estiver
> procurando a *palavra* test faça:
>
> fgrep ' test ' dreport.txt
> grep '^test ' dreport.txt
> grep ' test$' dreport.txt
> fgrep ' test[.;!?] ' dreport.txt
> egrep '(Luiz|Pereira)' nomes
> > De: Luiz Felipe Pereira [mailto:address@hidden]
> > Exemplo : fgrep test dreport.txt
> > Nesta linha eu soh quero retorno da linha que apresenta test
> > porem ele retorna linhas que tem como exemplo "teste"
=====
--
http://verde666.org s/click/^a]/;^[:wq
_______________________________________________________________________
Copa 2002
Yahoo! - Patrocinador oficial da Copa do Mundo da FIFA 2002
http://br.sports.yahoo.com/fifaworldcup/