I am writing a bash shell script. In there, I execute a command and save the output to a variable. The value is like this:
0x34f0020d4 4 0x434346000 test_string
How can I parse and save the value of the 3rd string (i.e. 0x434346000), assume the value is separated by space or tab?
Here’s one way using
awk:Test:
Results: