From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gscodenh01.cr.usgs.gov ([136.177.7.10]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DEXwm-0003cs-00 for ; Thu, 24 Mar 2005 14:24:49 -0500 Received: from PUNK ([130.118.172.119]) by gscodenh01.cr.usgs.gov (Lotus Domino Release 6.5.2) with SMTP id 2005032412240708-232086 ; Thu, 24 Mar 2005 12:24:07 -0700 Message-ID: <002f01c530a7$0c455830$77ac7682@azwaterDOM.wr.usgs.gov> From: "Sean McMahon" To: "Speakup is a screen review system for Linux." References: <200503240708.j2O78UCh013164@ms-smtp-04-eri0.southeast.rr.com> Date: Thu, 24 Mar 2005 12:24:06 -0700 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-MIMETrack: Itemize by SMTP Server on gscodenh01/SERVER/USGS/DOI(Release 6.5.2|June 01, 2004) at 03/24/2005 12:24:07, Serialize by Router on gscodenh01/SERVER/USGS/DOI(Release 6.5.2|June 01, 2004) at 03/24/2005 12:24:48, Serialize complete at 03/24/2005 12:24:48 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" 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: Sean McMahon , "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 19:24:49 -0000 Some commands have a -- some have a -. Other times --option is synonomous with -otheroption. You have to look at each command's options to get a good grep. ----- Original Message ----- From: "Sina Bahram" To: "'Speakup is a screen review system for Linux.'" Sent: Thursday, March 24, 2005 12:08 AM Subject: RE: how to chek for the number of options in an app > 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 > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup