I'm still a bit of a new person when it comes to Aspect (programming is not one of my likes, but I do it because it provides a bit of a challenge).
I'm trying to capture a 5-digit responce from a command sent to an SCO *nix server.
The command I send is:
idump $t/tbspinfo | awk '/natl_store_num/ {printf("%05d",$2)}'
Example output:
22513$
($ is the beginning of the prompt but the prompt is variable)
The responce is a 5 digit number. It's formatted using printf, so I can add in a character return. Problem is I can't figure out how to pull what I want and store it as a string for later use. The string has to be 5 numbers so it can be used inline with other commands.
Any thoughts?
I'm trying to capture a 5-digit responce from a command sent to an SCO *nix server.
The command I send is:
idump $t/tbspinfo | awk '/natl_store_num/ {printf("%05d",$2)}'
Example output:
22513$
($ is the beginning of the prompt but the prompt is variable)
The responce is a 5 digit number. It's formatted using printf, so I can add in a character return. Problem is I can't figure out how to pull what I want and store it as a string for later use. The string has to be 5 numbers so it can be used inline with other commands.
Any thoughts?