Re: [Quickfix-developers] QuickFIX Log Analysis
Brought to you by:
orenmnero
From: Caleb E. <cal...@gm...> - 2004-08-27 19:42:25
|
On Fri, 27 Aug 2004 15:48:20 +0200, Joerg Thoennes <joe...@ma...> wrote: > >> > >> grep -c '35=8' logfile > >> > >> counts the number of ExecutionReports. > > If it does, you could easily add a grep for the date. The same applies > for NewOrderSingle ('35=D'). If you have GNU grep I'd suggest making the regexp a little stricter so you don't get any false positives (e.g. something like 135=8): grep -c '[[:cntrl:]]35=8' logfile What you're looking for is really a perfect job for a Perl script though. Here's the skeleton of something that can read a quickfix message store (or any file that just contains raw FIX messages one per-line) and parses each message into a hash of field IDs and values. The rest it up to you: #!/usr/bin/perl -w use strict; while (<>) { chomp; my %MSG = map { split /=/, $_, 2 } split /\001/; # Do something with %MSG } -- Caleb Epstein cal...@gm... |