Tabelle in Array "konvertieren"

C

cablesky

Grünschnabel
Hallo!
Ich möchte gerne eine Tabelle (d.h. eine Ausgabe von Docker über alle Images mit "docker image ls" in einem Array speichern, um dann über die Zeilen iterieren zu können.

Tabelle sieht so aus:

agrries/abcdes latest ************ 10 months ago 13.9GB
jupyter/datascience-notebook hub-1.1.0 ************ 10 months ago 3.95GB
localhost:5000/scipy-notebook latest ************ 20 months ago 3.48GB
192.168.0.99:5000/scipy-notebook latest ************ 20 months ago 3.48GB
jupyter/scipy-notebook f9c990eb6295 ************ 20 months ago 3.48GB


Mit welchem Befehl kann ich das umsetzen?

Hatte es schon so probiert - jedoch ohne Erfolg..

Code:
declare -a myArray
myArray=(`docker image list"`)

for (( i = 0 ; i < 9 ; i++))
do
  echo "Element [$i]: ${myArray[$i]}"
done
 

Ähnliche Themen

Modulfehler?

Ubuntu X / dbus problem

Festplatte friert ein nach suspend/resume

Textkonsole mit KMS zu klein

Debian Lenny, ATI proprietary, Skystar2, Kaffeine

Zurück
Oben