The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
if statement in ksh
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
if statement in ksh
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
10-20-2006
Glenn Arndt
Anomalous Lurker
Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
Code:
if [[ $1 = [0-9] ]]; then print "yep" fi
...or I suppose you could do this...
Code:
if [[ $1 =
[
[:digit:]
]
]]; then print "yep" fi
Glenn Arndt
View Public Profile
Visit Glenn Arndt's homepage!
Find all posts by Glenn Arndt