#! /bin/bash#去除当前文件夹下的flac文件的文件名中的空格#for filename in $(find *.flac | sed "s/.*$/'&'/")#find all files with .flac extensionfor filename in *.flac
do# delete whitespace
new=$(echo $filename|sed's/ //g')#filename=$(echo $filename | sed 's/ /\\ /g')#filename=$(echo $filename| sed 's/.*/"&"/g')echo"$filename"echo$new# change filenamemv"$filename"$newdone