Skip to content

Instantly share code, notes, and snippets.

@mmalmeida
Created August 8, 2012 16:51
Show Gist options
  • Select an option

  • Save mmalmeida/3296615 to your computer and use it in GitHub Desktop.

Select an option

Save mmalmeida/3296615 to your computer and use it in GitHub Desktop.
bash script
logme(){
while read -r line; do
logline="$(getdate): $line"
echo $logline >> $current_log
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment