Skip to content

Instantly share code, notes, and snippets.

@emilk
Created July 12, 2016 13:42
Show Gist options
  • Save emilk/49d34b8e7efb79cea8490ce83761de51 to your computer and use it in GitHub Desktop.
Save emilk/49d34b8e7efb79cea8490ce83761de51 to your computer and use it in GitHub Desktop.
Bash script to log what you are doing
#!/bin/bash
# Log your activity. View with tail log.txt
echo $(date +"%Y-%m-%d %H:%M:%S") $@ >> ~/log.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment