Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 230 Bytes

File metadata and controls

15 lines (13 loc) · 230 Bytes

Scripting

helpful log function with date/time

log() {
  # parameter $@ is every parameter passed in
  dt=$(date +"%Y-%m-$d:%H%M%S")
  echo -e "$dt: $@
}

run script in loop

while true; do <command> ; done