dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit da66aaaa7fad22eb5bf5aa71672ae23421085bd0
parent ea834699dd314148d47c3d21a442170ff23328e8
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Tue, 28 Nov 2017 09:29:36 -0500

add twitter analytics script

Diffstat:
Alinks/bin/t-followers-diff.sh | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/links/bin/t-followers-diff.sh b/links/bin/t-followers-diff.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# https://github.com/sferik/t + +tmpfile=~/tmp/t-followers.txt +mv $tmpfile{,-old} + +#t followers -l | awk '{ print $13 }' > $tmpfile +t followers | \ + sed 's/ */ /' | sed 's/ *//g' \ + > $tmpfile + +diff $tmpfile{,-old} +echo "$(wc -l $tmpfile | awk '{ print $1 }') < $(wc -l $tmpfile-old | awk '{ print $1 }') followers"