$ external_tool | grep -iE "id1|id2" id1 Z55Hsh1abm id2 sFXxu4KzkJbXab08UT I have to store each id1 and id2 in separate variables mentioned below without executing external_tool twice. Below is how I am doing now but that's not acceptable.
export VAR1=$(external_tool | grep -i id1 | awk '{print $2}') export VAR2=$(external_tool | grep -i id2 | awk '{print $2}') Desired output from above should be
$ echo $VAR1 Z55Hsh1abm $ echo $VAR2 sFXxu4KzkJbXab08UT How do I store them in separate variables and export them in env var?
client_secretand where isid2gone?