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

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

Re: [shell-script] Contar linhas entre um determinado texto


From: César Vianna
Subject: Re: [shell-script] Contar linhas entre um determinado texto
Date: Thu, 8 May 2008 16:14:59 -0300

Ok... Agora chegou legal a representação do arquivo... Se entendi o que tu
falou..você precisa contar as ocorrências de linhas com data/input no
arquivo? Se for isso, o comando abaixo resolve

grep -c 'data/input' nome_arquivo




2008/5/8 Roberto Alves <address@hidden>:

>   Foi mal....burrice minha...esqueci das 80 colunas, provavelmente....
> Acho que no Gmail é bem menos que isso...
>
>
> +----------------------------------------------------------+
> | listing for ROBERT +
>
> +-------------------------------+------------------------------------------+
> | SOURCE DIR | SOURCE FILE |
>
> +-------------------------------+------------------------------------------+
> | data/input | 1147.file |
> | data/input | 1478.file |
> | data/input | 1483.file |
> | data/input | 2847.file |
> | data/input | 8284.file |
> | data/input | 8157.file |
> | data/input | 1118.file |
>
> +-------------------------------+------------------------------------------+
>
> Ok?
> Vlw, César.
>
> [As partes desta mensagem que não continham texto foram removidas]
>
>  
>


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

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