wxrx/lib/utils.sh

13 lines
145 B
Bash
Raw Normal View History

2022-01-22 15:15:37 -08:00
function nowstr() {
date -u +"%Y-%m-%dT%H:%M:%S%Z"
}
function log() {
printf "$(nowstr) ${1}\n" ${@:2}
}
function err() {
log $@ 1>&2
}