Hi All, Will it be fine if we use awk command instead of jsonpath to get the out . . .

Manas Sahoo:
Hi All, Will it be fine if we use awk command instead of jsonpath to get the output even though the column will not come in proper shape like below ?
EX: to get NAME and STATUS
controlplane kubectl get nodes --all-namespaces NAME STATUS ROLES AGE VERSION controlplane Ready master 161m v1.19.0 node01 Ready <none> 161m v1.19.0 controlplane kubectl get nodes --all-namespaces | awk '{print $1,2}' NAME STATUS controlplane Ready node01 Ready controlplane

Tej_Singh_Rana:
It will be mentioned in the question.

Tej_Singh_Rana:
Which format you have to use, if there is no information about any method, then okay with "awk".