grep from file
This commit is contained in:
parent
6e6bfe7bf8
commit
9af91e1e51
@ -38,8 +38,8 @@ case "${#containers[@]}" in
|
||||
exit
|
||||
;;
|
||||
1)
|
||||
container=$(echo "$search" | grep "${pod_id[0]}" | awk '{print $4}')
|
||||
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}')
|
||||
container=$(grep "${pod_id[0]}" cont_file | awk '{print $4}')
|
||||
container_id=$(grep -E "[[:space:]]${container}[[:space:]]" cont_file | awk '{print $1}')
|
||||
;;
|
||||
*)
|
||||
while true
|
||||
|
Loading…
Reference in New Issue
Block a user