编写个shell脚本将/home/test 目录下大于10K的文件转移到/tmp目录下

#!/bin/sh
cd /home/test
for i in `ls -l |awk '{if($5>10240) {print $9}}'`
do 
mv $i /tmp
done
原文地址:https://www.cnblogs.com/yangxiaofei/p/5239562.html