编写个shell脚本将当前目录下小于10K的文件复制到tmp目录下 #/bin/bash # Using for copy current directory lt 10k file to /tmp for FileName in `ls -l | awk '$5<10240 {print $9}'`; do cp $FileName /tmp -raf done ls -al /tmp echo "Done! "