csbio (biocs tumbled) RSS

a tumblelog to supplement my real blog

Things too long to tweet and too unimportant to blog go here.

Archive

Jan
26th
Mon
permalink

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)