twitter

Twitter from the command line

I’ve recently started playing with twitter. A nice way to use it via the command-line (using curl) was suggested here. I have taken that and improved slightly on it.Here is the result:#!/bin/shecho -n “twitter> “read textwhile [ ${#text} -gt 140 ]; doechoecho “Message too long; used ${#text}/140 characters.“echoecho -n “twitter> “read textdoneechoecho “Message is ${#text}/140 characters.┬áPress enter to post, or Ctrl+C to cancel.“readcurl –basic –user “username:password” –data-ascii “status=echo $text|tr ' ' '+'” “http://twitter.
Read more