I am trying to grab data after I see a particular string in the output of data. I need to grab the next four characters and place this in a file in a line by itself. Is this possible? If I were to create a capture file the data would be too large and too late.
Probably the best way is to use when target or if waitfor to detect that the string has been received, then use the rget command to read the next four characters. Keep in mind this will keep those characters from appearing on the screen.
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.