in reply to storing grep output to variable
open(IN, $ARGV[0]); @foo = grep { m/$ARGV[1]/ } <IN>; print @foo;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: storing grep output to variable
by Anonymous Monk on Jun 08, 2004 at 18:01 UTC | |
by wolv (Pilgrim) on Jun 09, 2004 at 13:27 UTC |