You could use Perl's -s instead of the shell's.
if (-s "/home/vcg/Documents/Trial/temp")
Note that empty (-z or !-s) and non-existent (!-e) are different things.
In reply to Re: Check for an empty file
by ikegami
in thread Check for an empty file
by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |