shell判断文件大小

#!/bin/bash
filename=$1
set `ls -il $filename`
if [ $6 -lt 300 ];
then
  echo $6
fi
exit 0

 

你可能感兴趣的:(shell判断文件大小)