lessa.sh
#!/bin/sh
filename=$1
size=$2
if[!-d$filename];then
echo"youmustenterlibraryname"
exit1
fi
ls-l$filename|sed'1d'|awk'{print$5,$9}'>/tmp/file.size
whilereadx
do
if[`echo$x|awk'{print$1}'`-gt$size];then
echo`echo$x|awk'{print$2}'`
fi
done</tmp/file.size
rm/tmp/file.size
a.sh目录名大小(字节大小)
本文转自 freeterman 51CTO博客,原文链接:http://blog.51cto.com/myunix/1322116,如需转载请自行联系原作者