win循环
set DataDir=%1
::set DataDir="E:\bin\test"dir /b/s %DataDir%\*.wav > wav.list
dir /b/s %DataDir%\*.pcm >> wav.list
::dir /b/s %DataDir%\*.eu >> wav.list
::dir /b/s %DataDir%\*.adu >> wav.list
::dir /b/s %DataDir%\*.voc >> wav.list
::stable test copy wavlist
for /L %%i in (1,1,10000) do (
dir /b/s %DataDir%\*.wav >> wav.list
dir /b/s %DataDir%\*.pcm >> wav.list)
set linenum=%2
::set linenum=1
linux shell循环
DataDir=$1
find $DataDir|grep 'pcm$' > wav.list
find $DataDir|grep 'wav$' >> wav.list
#for((i=0;i<10000;i++))
#do
#find $DataDir|grep 'pcm$' >> wav.list
#find $DataDir|grep 'wav$' >> wav.list
#done
#ulimit -c unlimited