From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from user-0c99bpv.cable.mindspring.com ([24.148.175.63] helo=taylor.homelinux.net) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DEaFh-0005n6-00 for ; Thu, 24 Mar 2005 16:52:29 -0500 Received: by taylor.homelinux.net (Postfix, from userid 1000) id 39ABFA0C021; Thu, 24 Mar 2005 16:52:36 -0500 (EST) Date: Thu, 24 Mar 2005 16:52:36 -0500 From: Lorenzo Taylor To: "Speakup is a screen review system for Linux." Message-ID: <20050324215236.GA17213@prince.homelinux.org> References: <001201c52fe5$938dfee0$4e31e444@nedelko83f1172> <200503240628.j2O6Sc0V021642@ms-smtp-02-eri0.southeast.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <200503240628.j2O6Sc0V021642@ms-smtp-02-eri0.southeast.rr.com> OS: Debian GNU/Linux Unstable (Sid) Linux-Kernel: 2.6.10-1-k7 Linux-User: 346322 (http://counter.li.org) User-Agent: Mutt/1.5.6+20040907i Subject: Re: how to chek for the number of options in an app X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 21:52:29 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ah! I think I got it! Try this: lorenzo@taylor:~$ ls --help |grep [-][-] |wc -l 44 lorenzo@taylor:~$ Note, though, that this only seems to work on commands where every short option (-o) has a corresponding long option (--option). You will need to look at the -h or --help option first to see how the options may be specified and then tailor the grep expression to fit the specific command. Lorenzo - -- "We decided that we should evaluate the Microsoft offerings first. Once we realised what a powerful set of tools they were, it became self-evident this was the right way to go down." Microsoft: the right way to go down -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCQzakG9IpekrhBfIRAlx+AKCrrLM5sq4iXpfIokAPhQrpqo6WdQCgthIC 3jAmghpxr2nbLn+3GAXQPtU= =s4bp -----END PGP SIGNATURE-----