Shell Script to check filesize

#!/bin/bash
if [ $# -ne 1 ];then
echo "0";
else
/bin/ls -l $1 | awk '{print $5}'
fi

You may also like...