Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Created January 21, 2017 04:48
Show Gist options
  • Save waltervargas/19f78bf9dfdf9779381be49d5562af1e to your computer and use it in GitHub Desktop.
Save waltervargas/19f78bf9dfdf9779381be49d5562af1e to your computer and use it in GitHub Desktop.
bash recipes
# funtion to log messages to the log file
function log
{
echo "["`date +'%m/%d/%Y %H:%M:%S'`"] "$@ >> $LOGFILE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment