Created
December 16, 2018 14:20
-
-
Save inesusvet/eb7dc51766fc3f8296e4d8f10c22951c to your computer and use it in GitHub Desktop.
Literacy for everyone! Put a link to random wiki-page to your commit messages
This file contains hidden or 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 | |
message_file=$1 | |
echo "" >> $message_file | |
random_wiki=`curl -s --head https://en.wikipedia.org/wiki/Special:Random | grep 'location: ' | cut -d ' ' -f 2` | |
echo "In case you are interested, you may read about $random_wiki" >> $message_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment