if statement help
kassube at gmx.net
Tue Sep 29 19:58:05 UTC 2009
Ray Parrish wrote:
> nowDay=$(date +%A);
The ";" at the end is not needed.
> AMorPM=$(date +%H):
The ":" at the end is wrong, probably you wanted to write
but again the ";" at the end is not needed.
> padsp espeak "$nowTime hours":
Again ":" is wrong (unless you really want to pass it to espeak).
> if [$AMorPM -lt 12]
That should be:
if [ $AMorPM -lt 12 ]
More information about the ubuntu-users