#!/bin/ksh
if [[ $1 = ?([+-])+([0-9]) ]]; then
echo "true";
else
echo "false";
fi
Friday, June 4, 2010
Testing for a number in the ksh
Quick script for testing for a number in the ksh
Labels:
test number ksh k shell unix
Subscribe to:
Post Comments (Atom)
1 comment:
Post a Comment