Created
August 26, 2013 04:48
-
-
Save gabrielkfr/6338181 to your computer and use it in GitHub Desktop.
Script bash que permite identificar si el día actual es el último día del mes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment