From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fed1rmmtao08.cox.net ([68.230.241.31]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DEMNB-00014E-00 for ; Thu, 24 Mar 2005 02:03:18 -0500 Received: from nedelko83f1172 ([68.228.49.78]) by fed1rmmtao08.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with SMTP id <20050324070235.BVGH18934.fed1rmmtao08.cox.net@nedelko83f1172> for ; Thu, 24 Mar 2005 02:02:35 -0500 Message-ID: <001d01c5303f$7cac59b0$4e31e444@nedelko83f1172> From: "Ned" To: "Speakup is a screen review system for Linux." References: <200503240628.j2O6Sc0V021642@ms-smtp-02-eri0.southeast.rr.com> Date: Thu, 24 Mar 2005 00:02:46 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 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 07:03:18 -0000 Thanks Sina, In your first post you said: ls --help | wc -l Wouldn't it only count the number of lines within the help file of the ls command? The grep is a much better idea, I tried something like: ls --help | grep -c '-' and it returned 51 because it counted both '-' and '--', but don't know how to ... is there a logical or operator for situations like this? I want to check for '-' or '--' How to do that? Many thanks! Ned ----- Original Message ----- From: "Sina Bahram" To: "'Speakup is a screen review system for Linux.'" Sent: Wednesday, March 23, 2005 11:28 PM Subject: RE: how to chek for the number of options in an app > Hi ned, > > ... To go back to what I said before, try playing with grep, so you could > at > least set up a regular expression for only the lines that have commands on > them ... > > Take care, > Sina > > -----Original Message----- > From: speakup-bounces@braille.uwo.ca > [mailto:speakup-bounces@braille.uwo.ca] > On Behalf Of Ned > Sent: Wednesday, March 23, 2005 3:19 PM > To: Speakup is a screen review system for Linux. > Subject: how to chek for the number of options in an app > > Hi all, > Is there a way to check, without counting by hand within the manual, how > many options are there for a command such as ls, more, bash, etc? > If not, what's the shortest way of doing that through the man? > > Many thanks in advance! > Ned > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup >