AnotherAlan
Technical User
Hi all,
Sorry about this, it's probably an easy one.
In ksh I can match any character between 1 and 6 in an if statement like this;
if [[ "$1" = ukexmb0[1-6] ]]; then blah,
I can't work out how to do it in /bin/sh.
I've read the man page and it suggests to use ? as wildcard to match anything. I've also seen threads on this forum that use [x-x] quite happily.
I've tried so many combinations now that I can't even remember what I have done.
Please help, its Friday and I want to get to the pub.
Thanks
Sorry about this, it's probably an easy one.
In ksh I can match any character between 1 and 6 in an if statement like this;
if [[ "$1" = ukexmb0[1-6] ]]; then blah,
I can't work out how to do it in /bin/sh.
I've read the man page and it suggests to use ? as wildcard to match anything. I've also seen threads on this forum that use [x-x] quite happily.
I've tried so many combinations now that I can't even remember what I have done.
Please help, its Friday and I want to get to the pub.
Thanks