Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Tcl Library › Utility to Count HL7 messages in multiple files
Has anyone written a utility that could scan through multiple smat files and count how many total messages were contained in the group of files.
Thanks,
Nick
How about “grep LENGTH *.idx | wc -l”?
That will do it. I don’t know why I didn’t think of that in the first place.
I’ve found the histmsat script useful for this sort of thing.
Here is a clovertech URL that posted the histsmat perl script and some example usage and output.
<a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=2393&highlight=histsmat” class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=2393&highlight=histsmat
Thanks to James Cobane for posting the code in the above URL.
The nice thing about histsmat is it allows you to list message flow in a granualar way that helps determine message flow during peak times.
Russ Ross RussRoss318@gmail.com