Knob, Hankm3, Anyone,
I am once again trying to pull specific info out of one capture file and into another. The capture is successful, and I just want to get rid of unuseful data. The problem that i am having, is that the data is not always on the same line, or in the same place. It changes depending on the state of each item. Here is an example of the outputed data:
"California_Ring,LABEL=LSANCAJWHFQ,RINGID=California_Ring,NODEID=1,ERWTR=99,E
SWTR=99,WRWTR=99,WSWTR=99,PGSTATE=IDLE,LAST=SUCCESS,RMAP=1|2|3,ESWORKCOND=OK,ESP
ROTCOND=OK,ESSWTYPE=NR,ESLCKTYPE=NL,ESSWSTATUS=IDLE,WSWORKCOND=OK,WSPROTCOND=OK,
WSSWTYPE=NR,WSLCKTYPE=NL,WSSWSTATUS=IDLE,PST=IS-NR,SST=NA,,PUS=C-3-2A-3-1A-3-2C-
"California_Ring,LABEL=FRMTCAEDHKQ,RINGID=California_Ring,NODEID=2,ERWTR=99,E
SWTR=99,WRWTR=99,WSWTR=99,PGSTATE=IDLE,LAST=DENY,RMAP=2|3|1,ESWORKCOND=OK,ESPROT
COND=OK,ESSWTYPE=NR,ESLCKTYPE=NL,ESSWSTATUS=IDLE,WSWORKCOND=OK,WSPROTCOND=OK,WSS
WTYPE=NR,WSLCKTYPE=NL,WSSWSTATUS=IDLE,PST=IS-NR,SST=NA,,PUS=A-2-2C-2-2A-1-2C-1-2
"California_Ring,LABEL=SCRMCAWCHGF,RINGID=California_Ring,NODEID=3,ERWTR=99,E
SWTR=99,WRWTR=99,WSWTR=99,PGSTATE=IDLE,LAST=SUCCESS,RMAP=3|1|2,ESWORKCOND=OK,ESP
ROTCOND=OK,ESSWTYPE=NR,ESLCKTYPE=NL,ESSWSTATUS=IDLE,WSWORKCOND=OK,WSPROTCOND=OK,
WSSWTYPE=NR,WSLCKTYPE=NL,WSSWSTATUS=IDLE,PST=IS-NR,SST=NA,,PUS=A-2-2C-2-2A-1-2C-
What I am looking to get is the LABEL, PGSTATE, ESSWTYPE, ESSWSTATUS, WSSWTYPE, WSSWSTATUS. I have tried using the strsearch and strextract commands, and I could not make them work. I may have been using them incorrectly though. If anyone can help I would greatly appriciate it. Please let me know if I need to put anymore information in the post.
Thanks,
David Melle
I am once again trying to pull specific info out of one capture file and into another. The capture is successful, and I just want to get rid of unuseful data. The problem that i am having, is that the data is not always on the same line, or in the same place. It changes depending on the state of each item. Here is an example of the outputed data:
"California_Ring,LABEL=LSANCAJWHFQ,RINGID=California_Ring,NODEID=1,ERWTR=99,E
SWTR=99,WRWTR=99,WSWTR=99,PGSTATE=IDLE,LAST=SUCCESS,RMAP=1|2|3,ESWORKCOND=OK,ESP
ROTCOND=OK,ESSWTYPE=NR,ESLCKTYPE=NL,ESSWSTATUS=IDLE,WSWORKCOND=OK,WSPROTCOND=OK,
WSSWTYPE=NR,WSLCKTYPE=NL,WSSWSTATUS=IDLE,PST=IS-NR,SST=NA,,PUS=C-3-2A-3-1A-3-2C-
"California_Ring,LABEL=FRMTCAEDHKQ,RINGID=California_Ring,NODEID=2,ERWTR=99,E
SWTR=99,WRWTR=99,WSWTR=99,PGSTATE=IDLE,LAST=DENY,RMAP=2|3|1,ESWORKCOND=OK,ESPROT
COND=OK,ESSWTYPE=NR,ESLCKTYPE=NL,ESSWSTATUS=IDLE,WSWORKCOND=OK,WSPROTCOND=OK,WSS
WTYPE=NR,WSLCKTYPE=NL,WSSWSTATUS=IDLE,PST=IS-NR,SST=NA,,PUS=A-2-2C-2-2A-1-2C-1-2
"California_Ring,LABEL=SCRMCAWCHGF,RINGID=California_Ring,NODEID=3,ERWTR=99,E
SWTR=99,WRWTR=99,WSWTR=99,PGSTATE=IDLE,LAST=SUCCESS,RMAP=3|1|2,ESWORKCOND=OK,ESP
ROTCOND=OK,ESSWTYPE=NR,ESLCKTYPE=NL,ESSWSTATUS=IDLE,WSWORKCOND=OK,WSPROTCOND=OK,
WSSWTYPE=NR,WSLCKTYPE=NL,WSSWSTATUS=IDLE,PST=IS-NR,SST=NA,,PUS=A-2-2C-2-2A-1-2C-
What I am looking to get is the LABEL, PGSTATE, ESSWTYPE, ESSWSTATUS, WSSWTYPE, WSSWSTATUS. I have tried using the strsearch and strextract commands, and I could not make them work. I may have been using them incorrectly though. If anyone can help I would greatly appriciate it. Please let me know if I need to put anymore information in the post.
Thanks,
David Melle