Hi,
I want to check if file text is empty or not with this bash script but doesn't work correctly:
Please help,
Thank you !
I want to check if file text is empty or not with this bash script but doesn't work correctly:
HTML Code:
file=/root/backup-system/res.txt
if [ -s $file ]; then
echo "Empty"
else
echo "No empty"
fi
Thank you !