delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/29/15:10:35

X-Spam-Check-By: sourceware.org
Date: Thu, 29 Mar 2007 13:10:09 -0700
From: Gary Johnson <garyjohn AT spk DOT agilent DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: grep will not work with a variable?
Message-ID: <20070329201009.GB4906@suncomp1.spk.agilent.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <mn DOT eb517d73f1140792 DOT 51129 AT pbs DOT org> <20070329193513 DOT GA4906 AT suncomp1 DOT spk DOT agilent DOT com> <mn DOT ebab7d73f1dda7dc DOT 51129 AT pbs DOT org>
MIME-Version: 1.0
In-Reply-To: <mn.ebab7d73f1dda7dc.51129@pbs.org>
User-Agent: Mutt/1.5.12 (2006-07-14)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2007-03-29, Kevin Markle wrote:
> 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...

You didn't say anything about a cd or directories in your original 
question.  If you are still having difficulties, or just don't want 
to have to do whatever it is you're having to do, we can probably 
help.  However, it would help us to help you if you would describe 
precisely what it is you are trying to do and describe precisely 
(with examples) of what happens when it doesn't work.  See

    http://cygwin.com/problems.html

Regards,
Gary

-- 
Gary Johnson                 | Agilent Technologies
garyjohn AT spk DOT agilent DOT com     | Mobile Broadband Division
                             | Spokane, Washington, USA

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019