Shell练习
摘要:
1.找出test目录下小于100k和大于300k的文件# !/bin/shls -l /tmp/test/ |awk '{print $9}' |grep -v ^$ | while read LINEdosize=`ls -l /tmp/test/$LINE |awk '{print $5}'`if [ $size -le 100 -o $size -ge 300 ];then#mv $LINE /tmpecho $LINEfidone或:find /tmp -size -100k -o -size +300k -exec ls -l {} \;2.找出tes 阅读全文
posted @ 2014-04-12 23:10 mybloges 阅读(433) 评论(0) 推荐(0) 编辑