Created
May 16, 2012 15:05
-
-
Save dgageot/2711039 to your computer and use it in GitHub Desktop.
Say each tweet when it arrives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lines_to_skip=`t timeline | wc -l | sed 's/^ *//g'` | |
i=0 | |
echo Skipping [$lines_to_skip] lines in the timeline | |
echo From now on, say each tweet as soon as it arrives... | |
t stream timeline | while read -r line; do | |
i=`expr $i + 1` | |
if [ $i -ge $lines_to_skip ]; then | |
echo "$line" | |
say -v Sebastien "$line" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is "t" tool? (for commands "t timeline" or "t stream timeline")