find . -name \*.mp3 -type f -print | while read FILE do echo "id3tag ${TAGS[@]}" echo "" read -u 3 -p "Do you want to run populate the ID3 tag (y,n,edit)?" ANSWER case $ANSWER in [Yy]*) id3tag "${TAGS[@]}" \""$FILE"\" ;; [Ee]*) history -s "id3tag "${TAGS[@]}" \"$FILE\"" printf "Press up arrow to edit current value (%s)\n" read -u 3 -ep "Edit the ID3tag: " VAR < /dev/tty TAG_IT=("$VAR") "${TAG_IT[@]}" ;; [Nn]*) echo 'Exiting' ;; esac done