An AWK question

antenneX antennex at
Fri Feb 4 11:14:59 PST 2005

---> FBSD-4.10p2

I have a script that tells me when a mailbox exceeds 2MB. Using it for
another purpose. how can I modify this script to tell me when a file is
LESS than a certain size?


#SIZE=2048     # (2048 = 2MB)

#if [ `${LS} -s ${FILE} | ${AWK} '{ print $1 }'` -gt ${SIZE} ]; then
#    echo File ${FILE} is ABOVE normal | mail -s "Alert: Check the file"

Thanks, and....

Best regards,

Jack L. Stone

More information about the freebsd-questions mailing list