Advertisement
josemld

saludo_sistema

Mar 8th, 2024 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | Source Code | 0 0
  1. #!/bin/bash
  2.  
  3. # Este script muestra un Saludo junto con la Fecha y Hora
  4.  
  5. nombre="Usuario"
  6.  
  7. echo -e "Hola, $nombre!\n\n**¡Bienvenido a tu Sistema Operativo Linux!**"
  8.  
  9. # Imprime la fecha y hora actual
  10.  
  11. fecha=$(date +"%d/%m/%Y")
  12.  
  13. hora=$(date +"%H:%M:%S")
  14.  
  15. echo "Fecha: $fecha"
  16.  
  17. echo "Hora: $hora"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement