fs=$IFS IFS=$(echo -en "\n\b") for f in $(ls ); do echo "$f"; mpc update --wait "$f"; done IFS=$fs