Jan
26th
Mon
26th
Test if file exists and is not empty (for Makefile)
In case some of your scripts in a Makefile silently fail (e.g. because they’re running on a cluster):
test -s file
(file exists, not empty)