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

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

Re: [shell-script] comando grep


From: Bruno Gunter Fricke
Subject: Re: [shell-script] comando grep
Date: Wed, 09 May 2007 10:18:52 -0300

Em um sequência até 10, você está dando um grep e mais uma penca de
coisas quando aparecer o "7".

Tira esse monte de coisas e vá vendo um por um, se não você não vai
pescar direitinho o que é. Do man do grep:

OPTIONS
       -A NUM, --after-context=NUM
              Print NUM  lines  of  trailing  context  after  matching
lines.
              Places  a  line  containing  --  between  contiguous
groups  of
              matches.


       -B NUM, --before-context=NUM
              Print  NUM  lines  of  leading  context  before  matching
lines.
              Places  a  line  containing  --  between  contiguous
groups  of
              matches.



Em Qua, 2007-05-09 às 10:02 -0300, By Debug escreveu:
> Bom dia a todos.
> Como interpretar a linha abaixo:
> seq 10 | grep -A1 -B3 7
> 
> Abraço.
> 
> -- 
> By Debug
> MSN: address@hidden
> 
> [As partes desta mensagem que não continham texto foram removidas]
> 
> 
> 
> 
> 
>  


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

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