Tweeting Random Line in CSV, Formatted Using AWK
Tweeting random entry in list.txt. 2nd, 3rd, and 4th column in comma-separated value is used:
$ head -$[${RANDOM} % `wc -l < ./list.txt` + 1] ./list.txt | tail -1 | awk -F, '{print $4"("$2")"$3}' | ruby ./tweet.rb