Unary Operator expected. Bash script
I got this error with my script and I can't seem to figure out the problem.
./age.bash: line 202: [: =: unary operator expected
Here is a portion of my script
if [ `cal $MTH $YR | tail +2 | grep -w $DAY | cut -c 1-2` = "$DAY" ]
elif [ `cal $MTH $YR | tail +2 | grep -w $DAY | cut -c 4-5` = "$DAY" ]
- Now MTH equals the month and YR equals the yr.. u get the pt. I want to check to see what day of the week a person is born on (sun-sat). This is bash scripting btw.