Thread Bestimmte zeilen einer datei einlesen: zeilen eytrahieren
(4 answers)
Opened by Gast at 2007-03-27 17:33
Hallo perl Community,
ich habe eine kleine Frage. Ich möchte eine Rückantwort eines Befehls auswerten, allerdings nur bestimmte Zeilen zwischen zwei Wörtern. Die Rückgabe sieht so aus: /snip Aggregate 'xyz_a01' Total space WAFL reserve Snap reserve Usable space 7867009024KB 786700900KB 0KB 7080308124KB Space allocated to volumes in the aggregate Volume Allocated Used Guarantee xyz_root 52510088KB 1916636KB volume xyz_v001 1934948116KB 1617418204KB volume xyz_test 41943092KB 23746348KB volume xyzc_v003 1159081868KB 940400392KB volume Aggregate Allocated Used Avail Total space 6303522376KB 5245256688KB 770219212KB Snap reserve 0KB 0KB 0KB WAFL reserve 786700900KB 246580KB 786454320KB /end Ich versuche nun nur die Zeilen die nach Volume kommen bis zum Aggregate zu lesen. Also möchte ich nur die namen der Volumes haben. kann mir wer nen Tipp geben ? |