Created
January 30, 2011 02:56
-
-
Save seungwon0/802470 to your computer and use it in GitHub Desktop.
Random commit message generator
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/sh | |
# | |
# whatthecommit - Random commit message generator | |
# | |
# Show random commit message from http://whatthecommit.com/. | |
# | |
# Seungwon Jeong <[email protected]> | |
# | |
# Copyright 2011 by Seungwon Jeong | |
curl -s http://whatthecommit.com | perl -p0e '($_)=m{<p>(.+?)</p>}s' |
curl -s http://whatthecommit.com/index.txt
But you might want mind when it returns "
sudo rm -rf / pawned!"
...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -L -s http://whatthecommit.com/ | grep -A 1 "\"c" | tail -1 | sed 's/<p>//'