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

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

Re: [shell-script] Mostrar arquivo maior que certa data.


From: Viktor Mota
Subject: Re: [shell-script] Mostrar arquivo maior que certa data.
Date: Fri, 11 Jun 2004 20:26:50 -0300

Prezado IGOR,

sexta-feira, 11 de junho de 2004, você escreveu:

I> ARO.LR.1#20040203#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040204#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040205#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040206#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040207#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040208#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040209#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040210#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040211#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK
I> ARO.LR.1#20040212#bmpa#ARO01#Rec80.020504.gz  020504 - 23:00  OK

I> Gostaria de mostrar, somente as linhas que tiverem a data maior que 
20040301(ano,mês,dia).
I> As linhas dentro do arquivo, são separadas por "#", então a data é a segunda 
coluna.

Uma  forma  rapida de ver por mes, entretanto nao ve mais do que o mes
desejado eh utilizar o grep

experimente dar o seguinte comando:
cat arquivo_log | grep 200403

Existem outras formas ok!

Cordialmente,
Viktor Mota
address@hidden




reply via email to

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