#!/bin/bash SAVEIFS=$IFS IFS=$(echo -en "\n\b") for f in $1*.xlsx do echo "$f" ssconvert -O 'separator=;' "$f" "${f%.*}.txt" done IFS=$SAVEIFS