From owner-freebsd-questions Sat Sep 7 0: 8:11 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 05A8837B400 for ; Sat, 7 Sep 2002 00:08:10 -0700 (PDT) Received: from pooh.ASARian.org (pooh.ASARian.org [216.21.171.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE3AD43E72 for ; Sat, 7 Sep 2002 00:08:08 -0700 (PDT) (envelope-from fuzzy@pooh.ASARian.org) Received: from localhost (fuzzy@localhost.ASARian.org [127.0.0.1]) by pooh.ASARian.org (8.11.6/8.11.6) with ESMTP id g8773OT03022 for ; Sat, 7 Sep 2002 03:03:26 -0400 (EDT) (envelope-from fuzzy@pooh.ASARian.org) Date: Sat, 7 Sep 2002 03:03:23 -0400 (EDT) From: Fuzzy To: questions@FreeBSD.ORG Subject: scripting problems In-Reply-To: <20020907021348.GB24498@hades.hell.gr> Message-ID: X-No-Archive: Yes Organization: ASARian Inc. 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 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