#!/bin/bash
#
# rename all .bkd to .dat and .bki to .idx in current directory
# and subdirectories

find . -type f -name "*.bkd" -exec /usr/bin/rename bkd dat '{}' +
find . -type f -name "*.bki" -exec /usr/bin/rename bki idx '{}' +
