HL7 scripts
HL7 scripts can be used with SMAT .msg files, HL7 files, and the engine from the command line, and are designed to work with pipes.
You can pipe the output to grep, another script, perl, and so on. You can pipe the output of another command or script to one of these scripts. These scripts work on Windows, UNIX, and Linux.