I generally use ksh, but I can work with bash. Would using ksh instead of bash be OK? (For most shell code, they are identical. But validating phone numbers would be easier for me if I can use some ksh extensions.)
If I understand the UK phone numbering plan, all valid mobile phone and pager numbers in the UK would be in the form
+44 7xxx xxxxxx when dialed from the US. Does this agree with what you are expecting?
How do you expect users to enter these numbers:
- Is the leading + required (i.e., +44 7xxx xxxxxx or 44 7xxx xxxxxx)?
- Are spaces allowed? (If so, are spaces required?) (+447xxxxxxxxx)
- If spaces are allowed or required, can the spaces be replaced by minus signs? (+44-7xxx-xxxxxx)
If multiple formats are allowed, what form does
singlemsisdn want? Can
singlemsisdn take an arbitrary number of operands? Will it only work if given seven operands? Will it only work if given one to seven operands?
How should users indicate that they are done:
- Use ctl-D?
- Enter q or quit?
- Enter an empty line?
- Enter 0?
I'm going to be unavailable for most of the afternoon, but if you can answer these questions, I'll take a look at it tonight.
---------- Post updated at 12:49 ---------- Previous update was at 12:40 ----------
Sorry for double posting. I just looked at your previous messages again. Looking for twelve digit numbers starting with 447 will be easy with either bash or ksh. So, ignore the questions about the format of the input, but I still need answers about how to terminate input and how to group entered data when invoking
singlemsisdn.
Sorry,
Don