A little more background on what I’m doing: I have some scripts running samba tar backups on some PC shares in a cron. If the PC happens to be off, samba still creates a small tar, usually 33 bytes, but always less than 1000 bytes. Therefore I can’t test for the tar file’s existence or file size = 0. I’d like to make sure that the file is greater than about 1000 bytes before echoing the backup worked
date >> logfile.
And yes, I looked at a refernce of basic expressions and I was surprized that I didn’t see a simple way to do it.