Enviado em 30/01/2013 - 12:45h
E ai pessoa!
To querendo verificar em um diretório, todos os aquivos que "NÃO CONTENHAM" uma string qualquer.
Exemplo:
ls -l ".txt" | grep "teste"
Este comando vai me retornar arquivos do tipo:
x_texte.txt, y_teste.txt, maria_teste.txt, etc..
Precisaria trazer todos os ".txt" sem a palavra "MARIA", por exemplo.
ls -l ".txt" | grep 'comandoExcluir' "Maria"
Com a saída:
x_texte.txt, y_teste.txt.
É isso ai..
[]'s, vlw!!
To querendo verificar em um diretório, todos os aquivos que "NÃO CONTENHAM" uma string qualquer.
Exemplo:
ls -l ".txt" | grep "teste"
Este comando vai me retornar arquivos do tipo:
x_texte.txt, y_teste.txt, maria_teste.txt, etc..
Precisaria trazer todos os ".txt" sem a palavra "MARIA", por exemplo.
ls -l ".txt" | grep 'comandoExcluir' "Maria"
Com a saída:
x_texte.txt, y_teste.txt.
É isso ai..
[]'s, vlw!!