/da/we/html/a  下面有80万个html 需要删除任意的2w个
 
cd /da/we/html/a;ls -U|head -n 20000|xargs rm -f  
1秒钟搞定
 
默认ls是会排序的 这样执行会卡住了。ls  -U