#!/bin/sh for file do if [ ! -f ${file} ]; then continue fi STR=`cat ${file}` if [ -z "${STR}" ]; then rm ${file} fi done
In reply to Re: UNIX command - remove 0 byte file
by monarch
in thread UNIX command - remove 0 byte file
by darrengan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |