From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15159 invoked from network); 13 Jan 2003 18:27:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Jan 2003 18:27:00 -0000 Received: (qmail 9883 invoked by alias); 13 Jan 2003 18:26:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5691 Received: (qmail 9875 invoked from network); 13 Jan 2003 18:26:49 -0000 Date: Mon, 13 Jan 2003 18:26:47 +0000 To: Carlos Carvalho Cc: zsh-users@sunsite.dk Subject: Re: how to search for a substring in a parameter? Message-ID: <20030113182646.GA8707@fysh.org> References: <15907.432.363150.443412@fisica.ufpr.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15907.432.363150.443412@fisica.ufpr.br> User-Agent: Mutt/1.3.28i From: Zefram Carlos Carvalho wrote: >I'm trying to see if the value of a parameter contains a given string >but didn't find an elegant way. if [[ $parameter == *given_string* ]]; then # yes else # no fi -zefram