Ajout Scripts Divers

This commit is contained in:
lebartal committed 2025-11-27 23:28:03 +01:00
1 parent 0831fd87b5
commit 05cad2a7ef
47 files changed
+16872

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
#!/bin/sh
DATE_ACTUELLE=`date '+%d/%m/%Y %H:%M:%S'`
echo "DATE_ACTUELLE="${DATE_ACTUELLE}
DATE_AUJOURDHUI=`date +%d`
DATE_VEILLE=$((${DATE_AUJOURDHUI} - 1))
echo "DATE_VEILLE="${DATE_VEILLE}
#JOUR=`date +%A`
JOUR="Monday"
echo ${JOUR};
if [ $JOUR == "Thursday" ];
then
{
echo "ON est jeudi !"
}
else
{
echo "ON n'est pas jeudi =( ! "
}
fi
# ts1=`date -d"${Date1}" +%Y%m%d%H%M%S`
# ts2=`date -d"${Date2}" +%Y%m%d%H%M%S`
# ts3=`date -d"${Date3}" +%Y%m%d%H%M%S`
# latest=ts1
# if [ $ts2 -gt $ts1 ]; then
# latest=ts2
# fi
# if [ $ts3 -gt $ts1 ]; then
# latest=ts3
# fi
#DATE=`date '+%H:%M:%S le %d:%m:%Y'`