public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: "Ned" <ngranic@cox.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: how to chek for the number of options in an app
Date: Thu, 24 Mar 2005 00:02:46 -0700	[thread overview]
Message-ID: <001d01c5303f$7cac59b0$4e31e444@nedelko83f1172> (raw)
In-Reply-To: <200503240628.j2O6Sc0V021642@ms-smtp-02-eri0.southeast.rr.com>

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" <sbahram@nc.rr.com>
To: "'Speakup is a screen review system for Linux.'" 
<speakup@braille.uwo.ca>
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
> 



  reply	other threads:[~ UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Ned
 ` Sean McMahon
 ` Sina Bahram
 ` Sina Bahram
   ` Ned [this message]
     ` Sina Bahram
       ` Sean McMahon
   ` Lorenzo Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001d01c5303f$7cac59b0$4e31e444@nedelko83f1172' \
    --to=ngranic@cox.net \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).