[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Script in BASH!
yeah, i thought about that, and then i realized that i was really just
testing to see if the first character was a number so i used:
if [ $((`echo $USER | cut -c1`)) -ge "0" ]; then
thank you david caradine.
On Thu, 20 Jul 2000, Jay Link wrote:
>
> > if [ $((`echo $USER | cut -c1`)) = 0-9 ]; then
>
> I know this isn't quite the answer you want, but it should work:
>
> A=`echo $USER | cut -c1`
> if [ $A -ge 0 ] && [ $A -le 9 ]; then
>
>
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.