Skip to content

Instantly share code, notes, and snippets.

@jazzychad
Created April 21, 2010 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jazzychad/374566 to your computer and use it in GitHub Desktop.
Save jazzychad/374566 to your computer and use it in GitHub Desktop.
#bash function to retrieve the last 5 tweets from a user
#based on the Chirp hackathon project by @jf and @jazzychad
#hattip @gypak
last5tweets ()
{
dig +short TXT `dig +short TXT $1.timeline.twitter.viadns.org | tr -d \"` | tr -d \"
}
#usage:
# last5tweets jazzychad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment