if statement help
Ray Parrish
crp at cmc.net
Tue Sep 29 21:09:46 UTC 2009
Nils Kassube wrote:
> 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
>
> AMorPM=$(date +%H);
>
> 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 ]
>
>
> Nils
>
I tried adding the spaces, and still it bombs and says PM only.
Later, Ray Parrish
--
The Future of Technology.
http://www.rayslinks.com/The%20Future%20of%20Technology.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com
More information about the ubuntu-users
mailing list