So basically you need to take the output from the second command and filter out those cards in the output from the first command?
If so, probably the easiest way to do that is to use the snapshot command to save the contents of the screen to a text file, open that file, and search for the "SLK LSN CLLI" using the strfind command. Once you have found that, you go line by line until the "Command Completed." line. For each line during that loop, you could use the strextract command, using a comma as the data delimiter, to grab the card (1205 your example) and then save that value away. You could use an array, another text file, append to a string, etc. whatever works best for you.
You would then run the first command and use a similar process to get the numbers of the various cards into a method you can work with to compare the two lists of cards. I think it might be easiest to read the first card from the second command, then go through the output from the first command, find that line, and delete it from the text file. I have a script or two on the samples page of my site that shows how to remove data from a text file that should get you started here (it's a bit tricky). When you are done going through the list of cards from the second command, you would close the text file from the first command, which would save your changes and end up with a processed list.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.