From fe6b1098679a6634c7e01090ad7ba99c0f8d2c5d Mon Sep 17 00:00:00 2001 From: Hamza Masood <47217263+hamza-m-masood@users.noreply.github.com> Date: Mon, 2 Dec 2024 01:14:44 +0000 Subject: [PATCH] correct typo --- docs/jsonpath.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/jsonpath.md b/docs/jsonpath.md index b8d5a88..9a7dacf 100644 --- a/docs/jsonpath.md +++ b/docs/jsonpath.md @@ -392,7 +392,7 @@ kube-system/etcd-kind-control-plane/172.18.0.2 kube-system/kindnet-g6jvd/172.18.0.2 ``` -This is useful when you need to process multiple values from each resource in a bash for loop. Due to the way `for` processing works in shell, you need all the values your want from each resource as a single string without spaces, i.e. like the output above. Then within the body of the for loop you split this string on the delimiter which in this case is forward slash (`/`). +This is useful when you need to process multiple values from each resource in a bash for loop. Due to the way `for` processing works in shell, you need all the values you want from each resource as a single string without spaces, i.e. like the output above. Then within the body of the for loop you split this string on the delimiter which in this case is forward slash (`/`). ```bash for pod in $(kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"/"}{.metadata.name}{","}{.status.podIP}{"\n"}{end}')