【aix】find和ls处理碎文件2000000个都报 The parameter list is too long.咋整?

mac2026-01-28  3

这个肯定不出错

ls /testdir >/l.txt

然后

 

写个shell

huge_mv(){ while read line1  do #rm -rf /u01/app/11.2/grid/rdbms/audit/$line1 echo /u01/app/11.2/grid/rdbms/audit/$line1 done } cat /u01/app/l.txt | huge_mv

 

这么处理

最新回复(0)