Skip to content

Instantly share code, notes, and snippets.

@malloc47 malloc47/
Created Feb 18, 2012

What would you like to do?
create page of +1s
echo "<html><head>" > page.html
echo "<script type=\"text/javascript\" src=\"\"></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
You can’t perform that action at this time.