Skip to content

How to list all pads

kingkaeru edited this page Mar 30, 2012 · 3 revisions

This was posted to the mailing list by Daniel Reeves. The script was actually written by Rob Felty.

The following script will extract the full list of public pads sorted by number of revisions:

mysql -u USER -pPSW etherpad_lite -e 'select store.key from store' \
   | grep -Eo '^pad:[^:]+' \
   | sed -e 's/pad://' \
   | sort \
   | uniq -c \
   | sort -rn \
   | awk '{if ($1!="2") {print $2 }}'
Clone this wiki locally