I want to run foo if and only if the current day of the month is less than the 7th.
So something like:
[ (/bin/date +'%-d') -le 7 ] && foo
Except that gives me a syntax error. The date part is coming out right, so I'm asking for the right syntax for the conditional test.