Created
February 18, 2012 03:37
-
-
Save malloc47/1857232 to your computer and use it in GitHub Desktop.
create page of +1s
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 | |
echo "<html><head>" > page.html | |
echo "<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script>" >> page.html | |
echo "</head><body>" >> page.html | |
grep -o http[^\"\)\']* $1 | xargs -I{} echo "<g:plusone href=\"{}\"></g:plusone>" >> page.html | |
echo "</body></html>" >> page.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment