From owner-freebsd-questions Sat Sep 7 1:16:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16B5337B400 for ; Sat, 7 Sep 2002 01:16:23 -0700 (PDT) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81AFA43E75 for ; Sat, 7 Sep 2002 01:16:17 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: from vectors.cx (a4a078734435c4a7e95b3a99508917d5@localhost [127.0.0.1]) by vectors.cx (8.12.4/8.12.4) with ESMTP id g878I52e084975; Sat, 7 Sep 2002 01:18:05 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.4/8.12.4/Submit) id g878I5CH084974; Sat, 7 Sep 2002 01:18:05 -0700 (PDT) (envelope-from monkey) Date: Sat, 7 Sep 2002 01:18:05 -0700 From: Adam Weinberger To: Fuzzy Cc: questions@FreeBSD.ORG Subject: Re: scripting problems Message-ID: <20020907081805.GA76893@vectors.cx> Mail-Followup-To: Adam Weinberger , Fuzzy , questions@FreeBSD.ORG References: <20020907021348.GB24498@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i 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 that's odd. on my system, man getopt has a very nice, descriptive manpage. no problem. this is what you're looking for: http://www.freebsd.org/cgi/man.cgi?query=getopt -Adam >> (09.07.2002 @ 0003 PST): Fuzzy said, in 0.8K: << > > I want to write a wrapper shell script for a program, > and check its options and arguments for validity, > before calling the binary. > > I can't find an understandable example of /bin/sh's > getopt. Would anyone have an example they could send me? > > man getopt just lists the builtin commands and > there isn't a man /usr/bin/getopt. The book I use, > "Unix in a Nutshell" only lists the syntax and has > no examples. > > Thanks. > > -- > Fuzzy _ > fuzzy @ asarian.org - ASCII ribbon campaign ( ) > - against HTML, vCards and X > - proprietary attachments in e-mail / \ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > >> end of "scripting problems" from Fuzzy << -- "Oh good, my dog found the chainsaw." -Lilo, "Lilo & Stitch" Adam Weinberger adam@vectors.cx http://vectors.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message