Re: Extract only A08 messages from SMAT for certain Pt Type

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Extract only A08 messages from SMAT for certain Pt Type Re: Extract only A08 messages from SMAT for certain Pt Type

#59355
Steven Spain
Participant

    Or, for UNIX/Linux, using perl, from the command line:

    cp message_file.msg some_file

    perl -pi -ne ‘s/MSH/nMSH/g’ some_file

    grep A08 some_file |grep LCS > file.tst

    file.tst should contain newline messages that contain A08 and also LCS . . . might take some tweaking, but it gets around the GUI, or hcismat, esp. if the .msg file is very large.

    Steven . . .