![]() |
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 |
| help in if expresion | justbow | Shell Programming and Scripting | 1 | 01-27-2009 05:50 AM |
| Regular Expression | ravi_rn | Shell Programming and Scripting | 3 | 01-05-2009 10:16 AM |
| regular expression help | Bob565656 | Shell Programming and Scripting | 6 | 09-09-2008 02:32 PM |
| Variable regular expresion in awk. | Klashxx | Shell Programming and Scripting | 4 | 08-31-2006 02:17 AM |
| regular expresion question | gillbates | UNIX for Dummies Questions & Answers | 3 | 09-13-2004 02:22 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Regular expresion
Here's my script
read number if echo $number | grep "[0-9][^a-zA-Z]" I want this "if" statement to return true only when numbers without letters is matched. For example 45 - true, 923 - true, r5 - false, tg/f - false and so on. In this script even a single digit number like "3" returns false. Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|