print only last column for pod
This commit is contained in:
parent
e3e85cf38e
commit
82a2deffa0
@ -29,7 +29,7 @@ mapfile -t pod_id < <(echo "$search" | grep -E "[[:space:]]$app_name([[:space:]]
|
|||||||
containers=$(
|
containers=$(
|
||||||
for pod in "${pod_id[@]}"
|
for pod in "${pod_id[@]}"
|
||||||
do
|
do
|
||||||
echo "$search" | grep "$pod" | awk '{print $7}'
|
echo "$search" | grep "$pod" | awk '{print $(NF)}'
|
||||||
done | nl -s ") " | column -t)
|
done | nl -s ") " | column -t)
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user