#!/bin/bash

find . -maxdepth 1 -type f -name "*.mp3" | while IFS= read -r file; do
    songname=`basename "$file" .mp3`
    eyeD3 --title "$songname" "$file"
done

