~johanvandegriff/unix-shell-programming-revised-edition-programs

unix-shell-programming-revised-edition-programs/time/time -rw-r--r-- 166 bytes
fc214385Johan Vandegriff added other old scripts, some newer ones too 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
#!/bin/sh
while true
do
  hours=`date | cut -c12-13`
  minutes=`date | cut -c15-16`
  seconds=`date | cut -c18-20`
  echo "$hours:$minutes:$seconds"
  sleep 0.1
done