From owner-freebsd-questions Tue Aug 14 15:48:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from q.closedsrc.org (ip233.gte15.rb1.bel.nwlink.com [209.20.244.233]) by hub.freebsd.org (Postfix) with ESMTP id E92D837B401 for ; Tue, 14 Aug 2001 15:48:30 -0700 (PDT) (envelope-from lplist@closedsrc.org) Received: by q.closedsrc.org (Postfix, from userid 1003) id 8829655407; Tue, 14 Aug 2001 15:48:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by q.closedsrc.org (Postfix) with ESMTP id 787C151610; Tue, 14 Aug 2001 15:48:29 -0700 (PDT) Date: Tue, 14 Aug 2001 15:48:29 -0700 (PDT) From: Linh Pham To: Drew Tomlinson Cc: "FreeBSD Questions (E-mail)" Subject: Re: Shell Script Help - Comparing Strings In-Reply-To: <5CD46247635BD511B6B100A0CC3F023925A069@ldcmsx01.lc.ca.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2001-08-14, Drew Tomlinson scribbled: # #! /bin/sh -vx # # # 8/8/01 # # An attempt to write script to run webalizer to generate web stats for all # # virtual web sites. # # # Set command line variables. $1 = web to run. # # # Set $1 to "www" if blank. # echo $1 # if ["$1"=""] # then $1 = "www" # fi Have you tried: if ["$1"==""] instead of just having = ? -- Linh Pham [lplist@closedsrc.org] // 404b - Brain not found To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message