Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2002 01:18:05 -0700
From:      Adam Weinberger <adam@vectors.cx>
To:        Fuzzy <fuzzy@pooh.ASARian.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: scripting problems
Message-ID:  <20020907081805.GA76893@vectors.cx>
In-Reply-To: <Pine.BSF.4.44.0209070250210.1249-100000@pooh.ASARian.org>
References:  <20020907021348.GB24498@hades.hell.gr> <Pine.BSF.4.44.0209070250210.1249-100000@pooh.ASARian.org>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020907081805.GA76893>