FILE=/root/tweets/index.html
LOGFILE=/root/tweets/cron.log
+INSTANCE=https://nitter.fdn.fr
-> $FILE
-curl https://nitter.net/keshinko | grep tweet-content | head -n 1 | sed -e 's/<[^>]*>//g' -e 's/^[ \t]*\(.*$\)/\1/' >> $FILE
-tail -n 1000 $LOGFILE > $LOGFILE
-date -R >> $LOGFILE
+curl $INSTANCE/keshinko | grep tweet-content | head -n 1 \
+ | sed -e 's/<[^>]*>//g' -e 's/^[ \t]*\(.*$\)/\1/' > $FILE
+date -R > $LOGFILE