X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=tweet-grab;h=fa6faefb37f2e00eb18f2695458d726f765c6dcb;hb=a81b29d421e62966c6710115522b323a13ce7afd;hp=8e94dc8daaf50f10058c2a26367f96f9bf6c42ee;hpb=3adb9508698fe0d1ec5f03d7fcd580da557c99cb;p=bin.git diff --git a/tweet-grab b/tweet-grab index 8e94dc8..fa6faef 100755 --- a/tweet-grab +++ b/tweet-grab @@ -3,5 +3,5 @@ FILE=/root/tweets/index.html LOGFILE=/root/tweets/cron.log > $FILE curl https://nitter.net/keshinko | grep tweet-content | head -n 1 | sed -e 's/<[^>]*>//g' -e 's/^[ \t]*\(.*$\)/\1/' >> $FILE -echo "$(tail -n 1000 $LOGFILE)" > $LOGFILE +tail -n 1000 $LOGFILE > $LOGFILE date -R >> $LOGFILE