Simple logging in BASH scripts
2011 July 04
A set of basic functions for writing to logs in BASH.
Commenter Jul added:
Very useful, thanks! You also could add timestamp at the beginning of each logged line :
dte=`date +’%Y%m%d %H:%M:%S’` echo -e “$dte $2″| …