Posted in Geekery on Aug 13th, 2010
GNU gettext is used by many open source projects for translation support. If you need to just do a find and replace in gettext source files, try this out to do a whole directory at once: 12345for i in *.po; do echo "Processing $i" msgfilter –no-wrap sed -e "s/OLD_TEXT/NEW_TEXT/g" < $i > /tmp/gettext [...]
Read Full Post »
Posted in Geekery on May 21st, 2010
Here’s a little bash script to display the name of all lists in your mailman site and the number of subscribers for each list, just run it in the same directory as your mailman binaries (/usr/lib/mailman/bin on Debian): 123456#!/bin/bash LISTS=$((`./list_lists | wc -l` – 1)) LISTS=`./list_lists | tail -n$LISTS | awk ‘{ print $1 }’` [...]
Read Full Post »