![]() |
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 |
| check the given string is numeric or not. | knowledge_gain | High Level Programming | 11 | 02-03-2009 11:25 AM |
| :-) 1213: Character to numeric conversion error. Plz help | anushree.a | Shell Programming and Scripting | 2 | 07-07-2008 11:50 PM |
| Bourne: search for a non-numeric character in $VAR | lumix | Shell Programming and Scripting | 2 | 12-14-2007 02:13 PM |
| to check variable if its non numeric | sachin.gangadha | Shell Programming and Scripting | 3 | 12-06-2007 05:33 PM |
| Check for numeric inputs | Raynon | Shell Programming and Scripting | 6 | 08-22-2007 03:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Below is the abstract of the script which is working fine.
if [[... ${l_file_mm} -gt 12 || ${l_file_mm} -eq 00 || \ ]] then error_process "Invalid month format." return 1 fi I am doing validation for month and it errors if the value is > 12 or < 0. In addition, I want to add another condition to error if it is not a number. Say, if it is 'ab', I want to error. What's the simpler way ? Thanks. |
|
|||||
|
Quote:
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|