decdb (269B)
1 #!/bin/sh 2 3 if [ $# -eq 1 ]; then 4 key=$1 5 for i in quotes/*; do 6 ../../bdec/bdec ${key} "$i" > "$i".tmp && 7 mv "$i".tmp "$i" 8 done 9 for i in urls/*; do 10 ../../bdec/bdec ${key} "$i" > "$i".tmp && 11 mv "$i".tmp "$i" 12 done 13 else 14 echo usage: decdb key 1>&2 15 exit 1 16 fi