Last active
August 24, 2018 03:47
-
-
Save curtis1000/36104836cb01087cc60c2505514d48d7 to your computer and use it in GitHub Desktop.
Working On
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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