grep from file

This commit is contained in:
Heavybullets8 2022-08-21 23:02:12 -06:00
parent 6e6bfe7bf8
commit 9af91e1e51

View File

@ -38,8 +38,8 @@ case "${#containers[@]}" in
exit exit
;; ;;
1) 1)
container=$(echo "$search" | grep "${pod_id[0]}" | awk '{print $4}') container=$(grep "${pod_id[0]}" cont_file | awk '{print $4}')
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}') container_id=$(grep -E "[[:space:]]${container}[[:space:]]" cont_file | awk '{print $1}')
;; ;;
*) *)
while true while true