The following is a good if-then-else :
if [[ $Number -eq 0 ]]; then |
Quote:
EDIT: actually ${Number/ /} removes only the first space. ${Number// /} removes all spaces and can be more simply given as ${Number// }. Here's a command prompt illustration: Code:
c@CW8:~$ x=' a b c ' |
All times are GMT -5. The time now is 02:23 AM. |