Last active
December 17, 2015 09:49
-
-
Save aspiers/5590440 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
read -p 'Enter event> ' event | |
google calendar add --user myaccount@gmail.com "${event// @ / at }" 2>&1 | \ | |
awk '{ print "* " $0 } | |
/^Event created: / { | |
system("url_handler.sh " substr($0, 16)) | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment