for var in "$@" do folder=$(basename "$var") echo "Importing '$folder' into beets..." beet im "$var" done sleep 10