This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: grep will not work with a variable?
- From: Keith Christian <keithchristian at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 29 Mar 2007 13:36:05 -0600
- Subject: Re: grep will not work with a variable?
- References: <mn.eb517d73f1140792.51129@pbs.org>
Kevin Markle wrote:
Hello,
I'm trying to find a pattern in a file and the command works if I
manully put the output of the variable in it but when I use the variable
it fails? I have tryed with quotes "$CLIENT" and without. I don't know
what else to try? :-(
echo "Client variable is --> \"${CLIENT}\"" ; grep "${CLIENT}" foo.txt
What does that tell you?
========Keith
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/