1 2 3
#!/bin/sh DIR=$(dirname "$0")/../cache; cat "$DIR/sql_*.php" | grep '/* SELECT' | sed 's,/\* ,,;s, \*/,,' | sort