in reply to Check for an empty file
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check for an empty file
by Jeri (Scribe) on Sep 22, 2011 at 19:04 UTC | |
|
Re^2: Check for an empty file
by ChuckularOne (Prior) on Sep 23, 2011 at 12:36 UTC | |
by ikegami (Patriarch) on Sep 23, 2011 at 16:35 UTC |