Skip to content

Instantly share code, notes, and snippets.

@lukas2
Created January 25, 2019 06:12
Show Gist options
  • Save lukas2/caa72006e6efaa0fb7b823a690bd9f6d to your computer and use it in GitHub Desktop.
Save lukas2/caa72006e6efaa0fb7b823a690bd9f6d to your computer and use it in GitHub Desktop.
wikiquote paul graham
export PAGE="Paul Graham" && clear && curl "https://en.wikiquote.org/w/index.php?title=$(echo $PAGE | sed 's/[[:blank:]]/_/g')&action=edit" 2>/dev/null | grep "\s*\*\s[^\[\*]" | sed 's/^\*[[:blank:]]//g' | sort -R | head -n 1 | fold -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment