Advertisement
andmalv

Reloj en la parte superior de la terminal

Aug 9th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. while sleep 1; do
  2.     tput sc
  3.     Cols=$( tput cols )
  4.     C=$[ Cols - 18 ]
  5.     tput cup 0 $C
  6.     echo -n "$( tput smso && date +"%T %D" && tput sgr0 )"
  7.     tput rc
  8. done &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement