Function
Jump to navigation
Jump to search
Bash
log() { echo "[$(date --rfc-3339=seconds)]: $*" }
error() { echo "[$(date --rfc-3339=seconds)]: $*" exit 1 }
Python
See also
Bash
, alias,&&
, Bash history, Autocompletion,set
,unset
,export
,.bashrc and .bash profile
,PS1
,echo
, brace expansion, Function, shopt,trap
,set -e
, source (command)- Programming: C, go, loop, While, for, if, variable assignment, Error handling, Regex, Function