public
Description: A Ruby RSS Archiver
Homepage: http://cecs.anu.edu.au/~mreid/code/feed_bag.html
Clone URL: git://github.com/mreid/feed-bag.git
feed-bag / tally.sh
100755 10 lines (10 sloc) 0.23 kb
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: tally.sh FEED_DB"
elif [ -f "$1" ]
then
sqlite3 -column $1 "select count(*),name from entries, feeds where entries.feed_id = feeds.id group by feed_id;"
else
echo "Cannot open $1"
fi