Código (bash) [Seleccionar]
#!/bin/bash
# Obteniendo el mes en letras
MES=`date +"%B"`
# Detectando fin de mes y mostrando en pantalla.
TOMORROW=`date --date=tomorrow +%d`
if [ $TOMORROW -eq "1" ]; then
echo "ALERTA: Hoy es el último día de $MES!"
fi
:http://www.tormentadebits.com/2013/08/script-bash-identificar-dia-fin-de-mes.html