Last active
December 15, 2015 21:58
-
-
Save zsxwing/5329170 to your computer and use it in GitHub Desktop.
A error function to output the message with time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
err() { | |
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $@" >&2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment