use bash to detech empty file