Skip to content

Instantly share code, notes, and snippets.

@mmalmeida
Created November 18, 2013 11:05
Show Gist options
  • Select an option

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

Select an option

Save mmalmeida/7526079 to your computer and use it in GitHub Desktop.
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