in reply to new : greping
use strict; use warnings; $_ = q|device1 is 2.3.5.1 . . . 56% /var 38% / 31% Interleaved device1 + Tue Sep 9 11:26:44 ist 2005 logging to device2 is 2.3.5.1 . . . 56% +/var 44% / 31%|; my @arr = /(device\d+)\sis\s.+?\/var\s+(\d+%)/g; print "@arr";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: greping for a value
by svenXY (Deacon) on Sep 07, 2005 at 11:00 UTC | |
by pingme8705 (Acolyte) on Sep 08, 2005 at 04:18 UTC | |
|
Re^2: greping for a value
by pingme8705 (Acolyte) on Sep 07, 2005 at 10:51 UTC |