Re: (sh/bash) How to check for a string matching -*?
- From: John Kelly <jak@xxxxxxxxxxxx>
- Date: Sun, 20 Jun 2010 16:04:21 +0000
On 20 Jun 2010 15:53:54 GMT, Martin Vaeth
<vaeth@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
case $1 in -*) false;; esac || echo "$start with -"
I think that's harder to read. I had to test it to be sure it worked.
--
Web mail, POP3, and SMTP
http://www.beewyz.com/freeaccounts.php
.
- Follow-Ups:
- Re: (sh/bash) How to check for a string matching -*?
- From: Martin Vaeth
- Re: (sh/bash) How to check for a string matching -*?
- References:
- (sh/bash) How to check for a string matching -*?
- From: Kenny McCormack
- Re: (sh/bash) How to check for a string matching -*?
- From: Martin Vaeth
- (sh/bash) How to check for a string matching -*?
- Prev by Date: Re: (sh/bash) How to check for a string matching -*?
- Next by Date: Re: (sh/bash) How to check for a string matching -*?
- Previous by thread: Re: (sh/bash) How to check for a string matching -*?
- Next by thread: Re: (sh/bash) How to check for a string matching -*?
- Index(es):
Relevant Pages
|