> $ sqlite3 whois-log-copy.db "select source from queries"|sort|uniq|wc -l
Oh cool they saved the logs in a database ! Wait... |sort|uniq|wc -l ?? But why ?
Oh cool they saved the logs in a database ! Wait... |sort|uniq|wc -l ?? But why ?
-- COUNT ( DISTINCT ... ) ~= uniq | wc -l ;; sort without -u is this busybox? ORDER BY col ASC
-- wait this doesn't need sort and uniq if it's just being counted...
SELECT COUNT( DISTINCT source ) FROM queries