#!/bin/bash ls "$1" if [ $? -ne 0 ] || [ "$1" == "" ]; then echo "List $1 not available" fi list=$1 IFS=$'\n'; set -f songs=($(cat ${list} | cut -f1 -d';')) artists=($(cat ${list} | cut -f2 -d';')) unset IFS; set +f for((i=0;i < ${#songs[@]};i++)) do printf "%s - %s\n" "${artists[i]}" "${songs[i]}" find /data/DatenLucas/Music/ -type f -iname *"${songs[i]}"* | grep "${artists[i]}" done