X-Spam-Check-By: sourceware.org X-YMail-OSG: UMLm2iQVM1lRhQmmeiaqQFYfawG6sJmERms.9sh1qJW8efpndEqxoYYzawLpVrGLmN97xfu7Cg-- Message-ID: <460C1525.8060305@yahoo.com> Date: Thu, 29 Mar 2007 13:36:05 -0600 From: Keith Christian User-Agent: Debian Thunderbird 1.0.2 (X11/20070113) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: grep will not work with a variable? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/