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

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

-- 
Gary Johnson                 | Agilent Technologies
garyjohn@spk.agilent.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/

