print only last column for pod

This commit is contained in:
Heavybullets8 2022-08-10 14:14:24 -06:00
parent e3e85cf38e
commit 82a2deffa0

View File

@ -29,7 +29,7 @@ mapfile -t pod_id < <(echo "$search" | grep -E "[[:space:]]$app_name([[:space:]]
containers=$(
for pod in "${pod_id[@]}"
do
echo "$search" | grep "$pod" | awk '{print $7}'
echo "$search" | grep "$pod" | awk '{print $(NF)}'
done | nl -s ") " | column -t)
while true
do