Skip to content

Instantly share code, notes, and snippets.

@curtis1000
Last active August 24, 2018 03:47
Show Gist options
  • Save curtis1000/36104836cb01087cc60c2505514d48d7 to your computer and use it in GitHub Desktop.
Save curtis1000/36104836cb01087cc60c2505514d48d7 to your computer and use it in GitHub Desktop.
Working On
function wo() {
# if there are no arguments
if [ $# -eq 0 ]
then
# output the log
tail ~/.wo
else
# append the log
echo \[$(date +"%Y-%m-%d %T")] "$@" >> ~/.wo
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment