develooper Front page | perl.perl6.users | Postings from June 2017

parameters from the command line: how do they do that?

Thread Next
From:
Todd Chester
Date:
June 22, 2017 04:50
Subject:
parameters from the command line: how do they do that?
Message ID:
742ca303-c436-f8fe-c97f-ab20a952354f@zoho.com
Hi All,

I know how to read things on the command line.  But
how to other's figure out what goes together when things
don't arrive in order?

For instance, from "man grep"

  -E, --extended-regexp
               Interpret PATTERN as ...

  -F, --fixed-strings
               Interpret PATTERN as ...

The -E and the -F can be in any order on the command line

Is there some module that you can send the run string
to with  "-E" (or similar) and it gives you back
what comes directly after "-E"?

I could do this manually, but it seems to be a lot of work.

How do they do that?

Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About