You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
302 B

#!/bin/sh
L=
while [ $# -ne 0 ]; do
case "$1" in
'-lang')
if [ "$2" = "fr" ]; then
date +%d/%m/%y
elif [ "$2" = "en" ] ; then
date +%m/%d/%y
date ++dd/mm/yy
shift
;;
'-fullYear')
date +Y
shift
;;
*)
echo "Argument $1 inconnu"
shift
;;
esac
done