#!/usr/bin/env bash –xv down_path=/d/360極速瀏覽器下載 #設置單詞分割符 IFS=$(echo -en "\n\b") #文件目錄 lst=`ls ${down_path}` #還原單詞分割符 IFS=$(echo -en "\n\t") for itm in ${lst};do if test -e ${down_path}/${itm}; then echo ${itm} fi done