[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Re: Deletar linhas
From: |
Andreyev Dia de Melo |
Subject: |
Re: [shell-script] Re: Deletar linhas |
Date: |
Tue, 27 Aug 2002 20:58:17 -0300 |
User-agent: |
Mutt/1.3.17i |
Boa noite a tds!
(fala Zeh! qnto tempo cara! me escreve em pvt)
fiz o seguinte:
# vi teste
inicio
00 bjhuhgh
01 nkhkçjç
02 mljoj
03 mjojoi
04 jhojhuk
05 nkhkh
06 lkmnohol
07 çkpjpjv
08 nihhon
09 nkhohjo
10 bhi,kojl
11 bk
12 ljl
13 nlnllk
14 nuhçouu
15 oiho
16 moijiji
17 mljoij
18 mlkjiop
19 ,nkno
20 njoji
termino
:wq!
# grep -A 3 03 teste >> teste.o
# sdiff teste.0 teste
> inicio
> 00 bjhuhgh
> 01 nkhkçjç
> 02 mljoj
03 mjojoi 03 mjojoi
04 jhojhuk 04 jhojhuk
05 nkhkh 05 nkhkh
06 lkmnohol 06 lkmnohol
> 07 çkpjpjv
> 08 nihhon
> 09 nkhohjo
> 10 bhi,kojl
> 11 bk
> 12 ljl
> 13 nlnllk
> 14 nuhçouu
> 15 oiho
> 16 moijiji
> 17 mljoij
> 18 mlkjiop
> 19 ,nkno
> 20 njoji
> termino
# sdiff teste.0 teste | grep ' >' | cut -c 16-
inicio
00 bjhuhgh
01 nkhkçjç
02 mljoj
07 çkpjpjv
08 nihhon
09 nkhohjo
10 bhi,kojl
11 bk
12 ljl
13 nlnllk
14 nuhçouu
15 oiho
16 moijiji
17 mljoij
18 mlkjiop
19 ,nkno
20 njoji
termino
mas parece q vc vai usar isso com o apache neh?
a busca por ' >' deve resolver...
estamos a disposição!
--------------------------------------
Andreyev Dias de Melo
CPqD Telecom & IT Solutions
Gerência de Infraestrutura e Produção
e-mail: address@hidden
http://www.cpqd.com.br
- RE: [shell-script] Re: Deletar linhas, Rangel, Luciano, 2002/08/27
- RE: [shell-script] Re: Deletar linhas, Rangel, Luciano, 2002/08/27
- RE: [shell-script] Re: Deletar linhas, Eduardo Mazolini, 2002/08/27
- RE: [shell-script] Re: Deletar linhas, Rangel, Luciano, 2002/08/27
- Re: [shell-script] Re: Deletar linhas,
Andreyev Dia de Melo <=
- RE: [shell-script] Re: Deletar linhas, Eduardo Mazolini, 2002/08/27
- RE: [shell-script] Re: Deletar linhas, Eduardo Mazolini, 2002/08/27