On Fri, Apr 17, 2009 at 04:59:39PM +0200, Erik Xavior wrote:
> aaaa
> why isn't working? :S
>
> if [ $(date +%H) > 10 ]; then echo "later then 10h"; else echo "before 10h";
> fi;
Because > is a string comparison. Do
help test
in bash
or man test
--
"A search of his car uncovered pornography, a homemade sex aid, women's
stockings and a Jack Russell terrier."
- http://www.news.com.au/story/0%2C27574%2C24675808-421%2C00.html