![]() |
|
|
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 |
| TAHI Test Suite 3.0.13 (IPv6 Conformance Test Tool branch) | iBot | Software Releases - RSS News | 0 | 04-06-2008 01:20 PM |
| A simple find and replace without using any regex (bash) | srikanths | Shell Programming and Scripting | 2 | 03-18-2008 08:08 AM |
| A way to use test for "$x" = [a-z] (regex) | lumix | Shell Programming and Scripting | 9 | 12-16-2007 06:38 AM |
| Keithley Introduces Linux-Based RF Parametric Test Systems - Test and Measurement.com | iBot | UNIX and Linux RSS News | 0 | 07-23-2007 11:30 AM |
| Strange error message with regex test... | fgilain | Shell Programming and Scripting | 4 | 05-31-2006 10:52 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
You shouldn't backslash-escape the parentheses. But if your regular expression is that simple, you could also use case instead. Code:
case $lastele in *[0-9]*) echo success;; *) echo failed >&2 esac |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|