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

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

Re: diff dúvida


From: lferreir1
Subject: Re: diff dúvida
Date: Fri, 27 Aug 2004 14:02:07 -0000
User-agent: eGroups-EW/0.82

Melhor ainda:

 >cat lista1
IEXPLORE
AWREM32
SshClient
notepad
PGPtray

 >cat lista2
IEXPLORE
SshClient
notepad
LSASS

 >comm -13 lista2 lista1
AWREM32
PGPtray


--- Em address@hidden, "lferreir1" <lferreir@e...> 
escreveu
> Vinicuis, verifique com o comando comm, opção 3
> comm -3 lista1 lista2
> 
> Até!
> Luiz
> --- Em address@hidden, "vinicius caldo" 
> <vinicius@s...> escreveu
> > Pessoal,
> > 
> > Estou tentando fazer o seguinte usando o diff:
> > 
> > Tenho duas listas com nomes de processos, e estou tentando obter 
> uma lista com os processos da primeira que não estão na segunda, 
> exemplo:
> > 
> > LISTA1
> > 
> > IEXPLORE
> > AWREM32
> > SshClient
> > notepad
> > PGPtray
> > 
> > LISTA2
> > 
> > IEXPLORE
> > SshClient
> > notepad
> > LSASS
> > 
> > A saída fica assim:
> > 
> > $ diff lista1 lista2
> > 2d1
> > < AWREM32
> > 5c4
> > < PGPtray
> > ---
> > > LSASS
> > A pergunta é:
> > 
> > Existe algum parametro que traga apenas as linhas que existam na 
> lista1 e NÃO existam na lista2?


reply via email to

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