
Twitter curl sed
Twitter one liner
Submitted by chrisindallas on Thu, 03/13/2008 - 16:31.With all this talk of Twitter from the command line, I thought I'd throw out a one liner to see the last 20 Tweets that my friends have posted.
curl --basic --silent --user user:password --get http://twitter.com/statuses/friends_timeline.xml | sed --quiet --expression='s/<name>\(.*\)<\/name>/\1/p' --expression='s/<text>\(.*\)<\/text>/\1/p'
Notice, that's all on one line, but was broken in two to fit on the screen.
