| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

exibir-data-e-hora

Page history last edited by PBworks 17 years, 2 months ago

Exibe data e hora do sistema

 

#!/bin/bash
# script para exibir a data e hora atuais

hh=$(date +%H)

clear

echo
echo "    ###############################"
echo 
data1=$(date "+%d de %B de %Y")
data2=$(date "+%H:%M:%S")
echo "    $data1"
echo "    hs $data2"
echo
case $hh in
     0[0-9]|1[0-1]) echo "    Bom dia" ;;
     1[2-7]) echo "    Boa Tarde" ;;
      *) echo "     Boa Noite" ;;
esac
echo 
echo "    ###############################"
echo

Comments (0)

You don't have permission to comment on this page.