How to check for a valid numeric input

Hi Folks,

I'm using bash script. I would like to check whether input is a number or not.(Only positive numbers).. if space or non numeric is entered, it should say "invalid input". pls help..

thanks in adv.

Br///
Vijay.

Take a look at the similar threads on the bottom of this page, at least one has an answer to this, from when it was asked before.