Re: (sh/bash) How to check for a string matching -*?



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

.