Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2001 15:48:29 -0700 (PDT)
From:      Linh Pham <lplist@closedsrc.org>
To:        Drew Tomlinson <drewt@writeme.com>
Cc:        "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org>
Subject:   Re: Shell Script Help - Comparing Strings
Message-ID:  <Pine.BSF.4.33.0108141546520.29182-100000@q.closedsrc.org>
In-Reply-To: <5CD46247635BD511B6B100A0CC3F023925A069@ldcmsx01.lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0108141546520.29182-100000>