[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Contar espaço em um arquivo.
From: |
hpfn |
Subject: |
Re: [shell-script] Contar espaço em um arquivo. |
Date: |
Tue, 8 Sep 2015 13:32:20 -0300 |
Olá de novo,
> > > cat texto.txt
> > >
> > > "123";"teste";"cachorro"
> > > "124";"teste"
> > > "125";"teste";"cachorro"
> > > "126";"teste"
> > > "127";"teste"
> > > "128";"teste";"cachorro"
> > >
> > >
Separando as linhas com um 'egrep' só:
egrep -v ".*;.*;.*" teste.txt
Pode-se usar em uma variável para depois contar(wc -l) o resultado.
abraço,
--
Herbert Parentes Fortes Neto (hpfn)
- Contar espaço em um arquivo., ezieljuniorjr, 2015/09/08
- Re: [shell-script] Contar espaço em um arquivo., Julio C. Neves, 2015/09/08
- Re: [shell-script] Contar espaço em um arquivo., Rodrigo Tenorio, 2015/09/08
- Re: [shell-script] Contar espaço em um arquivo., hpfn, 2015/09/08
- Re: [shell-script] Contar espaço em um arquivo., Ultimo de Miranda, 2015/09/08
- Re: [shell-script] Contar espaço em um arquivo., phfbettega, 2015/09/08