Hi all!
I want extract a portion of log file, from one timestamp to other timestamp with a shell script o a simple shell command.
This logs files have a lot of megabytes, and stand in a remote machines connected with a GPRS network to me, for it if i need read the log ... is expensive and slower get the entire log file, if i could extract a portion and compress it with gzip for download ... huummm i will be very happy
The problem is, that no all lines of log have a timestamp (yes, is a desing error ... but ... i'm only the sysadmin ... not the developer :P ), then if i filtering for example with 'cat logfile.log | grep 20060309145920 > piece.log' then the lines without timestamp dont appear
Some idea??
A lot of thanks