shell遍历文件夹

path=`pwd`
ls $path | while read line
do
	echo $line
done
pwd=`pwd`
filelist='ls $dir`
for file in $filelist:
do
	echo $file
done

你可能感兴趣的:(shell)