|
From: | Linda Walsh |
Subject: | Re: capturing sub-expressions? |
Date: | Tue, 29 Jan 2008 18:27:05 -0800 |
User-agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
Paul Jarc wrote:
Linda Walsh <bash@tlinx.org> wrote:p="-e -p 60 -x" --- That's why I wanted the capture -- to pick out the 60 -- where 60 represents a positive integer. The space between the -p and the number is optional.It sounds like you're looking for getopt.
--- I knew about getopt -- was just wanting a string-manipulation mechanism to do it, but am maybe getting too used to string manipulations in perl? Would still love to use perl's full RE's in bash expressions, such is life... (am not sure I want it enough to try implementing/merging them...:-)) Linda
[Prev in Thread] | Current Thread | [Next in Thread] |