> Thanks for your contribution. Could you please provide some example log
> lines showing the new format?

It is better to send you my current regular expressions. :-)

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: Get:[[:digit:]]+ 
((ht|f)tp|file)://[.[:alnum:]/_-]+ [./[:alnum:]-]+ [-[:alnum:]_+.]+ 
[+.:~[:alnum:]-]+ \[[.[:digit:]]+ *[kMGTPEZY]?B\]$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: Need to get [[:digit:].]+ 
*([kMGTPEZY]?B)(/[.[:digit:]]+ *([kMGTPEZY]?B))* of archives\.$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: After this operation, 
[.[:digit:]]+ *[kMGTPEZY]?B (of additional disk space will be used|disk space 
will be freed)\.$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: After unpacking 
[[:digit:].]+ *([kMGTPEZY]?B) (of additional disk space will be used|disk space 
will be freed)\.$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: Del [-[:alnum:]_+.]+ 
\[[.[:digit:]]+ *[kMGTPEZY]?B\]$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: Fetched [[:digit:].]+ 
*[kMGTPEZY]?B in ((([[:digit:]]+ *d )?[[:digit:]]+ *h ?)?[[:digit:]]+ *m(in)? 
?)?[[:digit:]]+s \([[:digit:].]+ *[kMGTPEZY]?B/s\)$

The matter: they allow optional spaces between value and unit.
Attention. Some log lines contain more than one measurements. E.g.
... Fetched 387 kB in 6 d 18 min (1.3 B/s)

Regards

Gabor



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to