I\'m using a shell script with the following statement to move an empty file from directory a to directory b: if [ ! -s /a/filea.csv ]; then mv /a/filea.csv /b/fileb.csv; fi