Testing for strings, and numbers
Ray Parrish
crp at cmc.net
Fri Nov 13 13:24:13 UTC 2009
Hello,
I am writing a bash script and I would like to test $1 to see if it
begins with the string "http://" but I am not coming up with a method of
doing so.
Also I would like to know how to test $1 to see if it begins with a
numeric digit.
All of my attempts so far have been stymied, and I can't seem to find
the excellent bash reference I had been using before, and am trying to
navigate a couple of less than excellent references that do not include
sections on string handling.
Could someone help me with this please?
Thanks, Ray Parrish
--
The Future of Technology.
http://www.rayslinks.com/The%20Future%20of%20Technology.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com
More information about the ubuntu-users
mailing list