X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Kevin Markle Subject: Re: grep will not work with a variable? Date: Thu, 29 Mar 2007 15:39:43 -0400 Lines: 22 Message-ID: References: <20070329193513 DOT GA4906 AT suncomp1 DOT spk DOT agilent DOT com> Reply-To: kmarkle AT pbs DOT org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit 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 Gary Johnson used his keyboard to write : > On 2007-03-29, 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? :-( > > What do you get if you execute > > echo '|'"$CLIENT"'|' > > I just put those '|' there to more clearly delimit the value of > CLIENT. > > Gary I tryed adding a cd to the directory that I was attempting to grep from and that worked? This is okay because is worked but it would be nice to not have to so that... -- 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/