#!/bin/sh
DB_LOAD=db4.2_load

if [ -z "$1" ]; then
  echo "Usage: $0 directory ...."
  exit 1
fi
while [ "$1" ]; do
  find $1 -type f -name "*.mp3" -print|sed 's/\\/\\\\/g'| \
      awk ' {print $0."\00"; print "1\00"; }'| \
      $DB_LOAD  -n -T -t hash playlist.db
  shift
done 
