1, use the curl command to get the mirror list information;
2, the use of it related command to get the token value;
3, just use the awk command and use "|" as a delimiter access token specific parameter values
CodePudding user response:
Curl - I - H "X - Auth - Token: ` it Token issue | awk -f '|' '/id/{print $3}' `" http://controller:9292/v2/images