find empty file for gxp?

なんか凝って作ってしまったので,ちょっとアップ

#!/bin/sh
BASE=$(basename $0)

usage() {
    echo "Usage: $BASE [-h] [-n]  [file]"
    exit 1;
}

TEMP=$(getopt -o "nh0" -n $BASE -- "$@")
if [ $? != 0 ] ; then usage; fi
eval set -- "$TEMP"

HOST=
NOT=!
while true;
do case "$1" in
    -h) HOST="$(hostname)\t"; shift ;;
    -n) NOT=; shift;;
    -0) ZER=1; shift;;
    --) shift; break;;
    *) usage;;
    esac
done

FOUND=
for arg; do
        if [ -e "$arg" -a $NOT -s "$arg" ]
    then
        FOUND=1
        test -n "$ZER" && echo -ne "$HOST$arg\0" || echo -e "$HOST$arg"
    fi
done
test -n "$FOUND"

GXPで空のファイルや空ではないファイルを見つけるとき便利かも