> How can I pass the $VALUE to grep without outputting it to a file and
> grepping the file?
I'm not exactly sure what you're trying to do.
If you are trying to search for a match on "pattern" against a file whose
name is contained in $VALUE, then simply pass the variable on the command line
where the file name would usually go:
grep pattern $VALUE
If you are trying to search for a match on "pattern" against the contents of
the variable $VALUE, then use the "echo" command to output the variable to
stdout, and pipe that through grep:
echo $VALUE | grep pattern
Hope this helps!
--
Ben Scott
Sent via Deja.com http://www.deja.com/
Before you buy.