#!/bin/bash
nextday=`date --date '1 day' +%d`
if [ $nextday -eq 1 ]; then
  echo `date +%Y/%m/%d` is end of the month.
else
  echo `date +%Y/%m/%d` is *NOT* end of the month.
fi

