From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ms-smtp-04-lbl.southeast.rr.com ([24.25.9.103] helo=ms-smtp-04-eri0.southeast.rr.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DEMSH-0001EG-00 for ; Thu, 24 Mar 2005 02:08:33 -0500 Received: from QUARK (cpe-069-134-173-071.nc.rr.com [69.134.173.71]) by ms-smtp-04-eri0.southeast.rr.com (8.12.10/8.12.7) with ESMTP id j2O78UCh013164 for ; Thu, 24 Mar 2005 02:08:31 -0500 (EST) Message-Id: <200503240708.j2O78UCh013164@ms-smtp-04-eri0.southeast.rr.com> From: "Sina Bahram" To: "'Speakup is a screen review system for Linux.'" Date: Thu, 24 Mar 2005 02:08:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcUwP5RbZnw6u5ezQmqqqK24BWm+mwAAF9yw In-Reply-To: <001d01c5303f$7cac59b0$4e31e444@nedelko83f1172> X-Virus-Scanned: Symantec AntiVirus Scan Engine 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:08:33 -0000 Hi Ned, About the ls -l | wc -l thing: yeh totally man: I just forgot to mention grep in the first email ... And about the '-' thing: well, that's true; however, don't the '-' and '--' appear on the same line anyways? If they do, then why does it matter? Oh, and to answer your question: The regular expression: '-+' would check for 1 or more occurances of '-' consecutively Take care, Sina -----Original Message----- From: speakup-bounces@braille.uwo.ca [mailto:speakup-bounces@braille.uwo.ca] On Behalf Of Ned Sent: Thursday, March 24, 2005 2:03 AM To: Speakup is a screen review system for Linux. Subject: Re: how to chek for the number of options in an app 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 > _______________________________________________ Speakup mailing list Speakup@braille.uwo.ca http://speech.braille.uwo.ca/mailman/listinfo/speakup