The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 10-20-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline
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
Reply With Quote