![]() |
Checking for Alphabets
Code:
echo -n "read this also:"When i use digit, it read 22.k as alphabet and not as a wrong syntax. For alpha , it does not allow me to input data which has spaces such as " hello world". how can i solve this issue. |
Assuming bash:
Code:
if [[ $testvar =~ [[:digit:]] ]]; then |
| All times are GMT -5. The time now is 05:16 PM. |