![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| limiting failed logins to three | csaunders | HP-UX | 1 | 10-18-2007 10:56 AM |
| Aplication user and kernel mode (data access) | Brendan Kennedy | High Level Programming | 1 | 05-27-2007 06:45 PM |
| AIX v.5.1 - system and user data backup | Sezgin | AIX | 5 | 01-08-2007 06:29 AM |
| Limiting length of user in while creating user | Satya Mishra | AIX | 2 | 04-15-2005 03:40 AM |
| Limiting access | misha | UNIX for Dummies Questions & Answers | 4 | 02-24-2001 07:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
limiting data inputs for the user
if my user has to enter the name of months to carry out a search how can I limit the input values to only the month names and nothing else?
so far my input criteria for the user is this: Quote:
|
|
||||
|
Code:
echo " " echo "Enter the month in which you wish to search (Please enter months in the form of Jan, Feb, Mar, etc...): " read MONTH case $MONTH in [Jj]an|[Ff]eb|[Mm]ar|[Aa]pr|[Mm]ay|[Jj]un|[Jj]ul|[Aa]ug|[Ss]ep|[Oo]ct|[Nn]ov|[Dd]ec);; *) echo "Invalid month name" ;; esac grep $5 "$MONTH" tempfile > tempmonth |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|