[CentOS] Question about Shell Script.
Filipe Brandenburger
filbranden at gmail.com
Fri Jan 30 20:56:39 UTC 2009
On Fri, Jan 30, 2009 at 13:59, R P Herrold <herrold at centos.org> wrote:
> or for those who are used to being burned:
> [ 0$NUMBEROFPRO -gt 150 ]
Still going to explode if $NUMBEROFPRO contains spaces. Putting in
double quotes will not help you either, since it will complain about
it not being numeric...
Doing math with the shell is always tricky, almost never robust...
Filipe
More information about the CentOS
mailing list