From owner-freebsd-questions Wed Aug 15 14:20:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id 3387937B40A for ; Wed, 15 Aug 2001 14:20:28 -0700 (PDT) (envelope-from drewt@writeme.com) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0GI400N01OMWND@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Wed, 15 Aug 2001 14:21:00 -0700 (PDT) Received: from tagalong ([165.107.42.215]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0GI400N6BOMRJC@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Wed, 15 Aug 2001 14:20:51 -0700 (PDT) Date: Wed, 15 Aug 2001 14:19:19 -0700 From: Drew Tomlinson Subject: RE: Shell Script Help - Comparing Strings (Solved) In-reply-to: <5CD46247635BD511B6B100A0CC3F023925A06B@ldcmsx01.lc.ca.gov> To: "FreeBSD Questions (E-mail)" Message-id: <5CD46247635BD511B6B100A0CC3F023925A074@ldcmsx01.lc.ca.gov> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal 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 Thank you to all who responded with words of wisdom to my questions regarding scripting. What I have learned is that one cannot (or at least should not) try and manipulate the variables ($1, $2, etc.) assigned to command line arguments directly. Also, to test a variable for a null string, use the "-z" option. Anyway, I completed my first simple script to run webalizer stats on virtual webs by passing the web name to the script on the command line. Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message