bash month variable
I would like to execute some bash script ten months during the year, just not July or August. So, I tried to capture the month number and would compare latter, but it doesn't work.
For example:
#!/bin/sh
#
declare -i mon='date +%m'
echo $mon
Produces an error.
-bash: declare: date +%m: syntax error: operand expected (error token is "%m")
Oh, there must be a better way. Thanks in advance....
|