hey imI'm writing this onin my script it. It has other body parts but i got stockI'm getting stuck on this part only.
if [[$# == $year $month $day ]] ; then
cal $day $month $year fi
if [[$# == $year $month $day ]] ; then cal $day $month $year fi when iWhen I run this it give me this msg [[3: command not found
[[3: command not found soSo what is the problem? is it a syntax or actual command?
year=$(echo "$year" | bc) month=$(echo "$month" | bc) day=$(echo "$day" | bc) if [[$# == $year $month $day ]] ; thenHere's the rest of my script if that helps:
cal $day $month $year fi
year=$(echo "$year" | bc) month=$(echo "$month" | bc) day=$(echo "$day" | bc) if [[$# == $year $month $day ]] ; then cal $day $month $year fi