shell脚本实例一,移动文件夹中大于2000B的文件到另一个文件夹
摘要:
shell脚本能帮我们简化linux下的一些工作,现在有个需求,把TMPA文件夹下大于2000B的文件都移动到TMPB下 1 #! /bin/bash 2 3 function movefiles() 4 { 5 for file in `ls $1` 6 do 7 if [ `stat -c %s $1"/"$file` -gt 2000 ] 8 then 9 mv $1"/"$file $2"/"$file ... 阅读全文
posted @ 2014-01-22 14:52 JammyPie 阅读(1281) 评论(0) 推荐(0)
浙公网安备 33010602011771号