[clue-tech] shell globbing and case

David L. Willson DLWillson at TheGeek.NU
Tue Mar 2 09:01:29 MST 2010


> Have you read Pattern Matching in bash(1)?

I ~have~ Read The Friendly Man-page, in fact!  :-)  Unfortunately, the behavior of 'ls' in the interactive bash shell, and case patterns in script, seem to be pretty different.  No surprise there, just trying to understand what the differences are.

> > I'm trying to setup a case statement, something like this plain
> English.
> >
> > (one or more digits)
> > (one or more digits, followed by a colon)
> > (a colon, followed by one or more digits)
> > (one or more digits, a colon, one or more digits)
> 
> So for ease of localization and such Perl might be a better language.

I'm sure you're right, Dave, and have started investing time in learning Perl, and increasing my proficiency with AWK.


More information about the clue-tech mailing list