in reply to Re: specific field selection
in thread specific field selection
#!/usr/bin/perl use strict; use warnings; my @args; our $F; @args = ("cciss_vol_status /dev/ciss0 > checkstatres.txt"); system(@args); open RESULTS, "checkstatres.txt" or die "can't open datafile: $!\n"; while (<RESULTS>){ my @F=split(/:/, $_); if ( $F[2] =~ /OK./){ printf (" it's okay\n"); } else{ printf (" it's not ok\n"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: specific field selection
by NetWallah (Canon) on Mar 06, 2008 at 16:55 UTC | |
by javpra (Initiate) on Mar 07, 2008 at 21:54 UTC | |
by NetWallah (Canon) on Mar 08, 2008 at 01:32 UTC |