my $cmd = 'mminfo -r 'volume,state,written,%used,space,pool,location,ssinsert' -q 'ssinsert <= three week ago'; open CMD, "$cmd |" or die "Can't run '$cmd': $!\n"; while () { if (/Daily\S+\s/) { print "Daily true $_"; } else { print "not found\n "; } }