The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Bourne: search for a non-numeric character in $VAR
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Bourne: search for a non-numeric character in $VAR
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
12-14-2007
lumix
Registered User
Join Date: Dec 2007
Posts: 15
Bourne: search for a non-numeric character in $VAR
if $1 = "123x456", how can I test for the non-numeric character 'x' in that string. I've tried expr with "[^0-9]" but it did not find the x. Any ideas? Can this perhaps be done with
sed
?
Thanks.
lumix
View Public Profile
Find all posts by lumix
Find lumix's past nominations received
Find lumix's present nominations given