|
From: | ezieljuniorjr |
Subject: | Contar espaço em um arquivo. |
Date: | 07 Sep 2015 14:38:33 -0700 |
"123";"teste";"cachorro"
"124";"teste"
"125";"teste";"cachorro"
"126";"teste"
"127";"teste"
"128";"teste";"cachorro"
Estou tentando pegar apenas as linhas da terceira coluna vazia. Então pensei em printar a terceira coluna e aplicar a contagem porem não estou conseguindo resolver aparti disso. Abaixo segue minha tentativa:
cat texto.txt | awk -F ";" '/^ $/{print $3}' | wc -l
ele me retorna 0
Queria que alem de contar me trouxesse a linha por completo. Por exemplo:
3 linhas vazias
"124";"teste"
"126";"teste"
"127";"teste"
Podem me ajudar?
Att,
[Prev in Thread] | Current Thread | [Next in Thread] |