An AWK question
From: antenneX (antennex_at_swbell.net)
Date: 02/04/05
- Previous message: Peter Harmsen: "Re: Expected too much?"
- Next in thread: Jonathan Chen: "Re: An AWK question"
- Reply: Jonathan Chen: "Re: An AWK question"
- Reply: Steven Friedrich: "Re: An AWK question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <freebsd-questions@freebsd.org> Date: Fri, 4 Feb 2005 13:14:57 -0600
---> 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?
---------------------------------------------
#!/bin/sh
#AWK=/usr/bin/awk
#FILE=/file/size/to/check
#LS=/bin/ls
#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"
#fi
---------------------------------------------
Thanks, and....
Best regards,
Jack L. Stone
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Peter Harmsen: "Re: Expected too much?"
- Next in thread: Jonathan Chen: "Re: An AWK question"
- Reply: Jonathan Chen: "Re: An AWK question"
- Reply: Steven Friedrich: "Re: An AWK question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|