diff --git a/tree-EN.sh b/tree-EN.sh index 395f024..b4b139c 100755 --- a/tree-EN.sh +++ b/tree-EN.sh @@ -29,10 +29,11 @@ for ((i=1; i<=2; i++)) tput cup $((lin++)) $c echo 'mWm' } - +new_year=$(date +'%Y') +let new_year++ tput setaf 1; tput bold tput cup $lin $((c - 6)); echo MERRY CHRISTMAS -tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in 2015 +tput cup $((lin + 1)) $((c - 10)); echo And lots of CODE in $new_year let c++ k=1 diff --git a/tree-ES.sh b/tree-ES.sh index f67c103..9fd36be 100755 --- a/tree-ES.sh +++ b/tree-ES.sh @@ -29,10 +29,12 @@ for ((i=1; i<=2; i++)) tput cup $((lin++)) $c echo 'mWm' } - +ano_nuevo=$(date +'%Y') +let ano_nuevo++ tput setaf 1; tput bold tput cup $lin $((c - 6)); echo FELICES FIESTAS -tput cup $((lin + 1)) $((c - 9)); echo Y mucho CODIGO en 2015 + +tput cup $((lin + 1)) $((c - 9)); echo Y mucho CODIGO en $ano_nuevo let c++ k=1