How about the following the following

<command here> | grep -v "^[0-9]%"

Should work.


Charlie



> -----Original Message-----
> From: Rainer Duffner [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 10, 2005 11:56 AM
> To: vchkpw@inter7.com
> Subject: Re: [vchkpw] listing over-quota users
> 
> Charles J. Boening wrote:
> 
> >How about this?
> >
> ><snip filename='/home/vpopmail/bin/overquota.sh'>
> >   #!/bin/sh
> >   for i in `/home/vpopmail/bin/vpopbull -n -V`;
> >      do echo `/home/vpopmail/bin/vuserinfo -Q $i` $i
> >   done
> ></snip>
> >
> >Called like this
> >/home/vpopmail/bin/overquota.sh  | grep "100%" | mail -s "Overquota 
> >users" <your-email-addy>
> >
> >
> >  
> >
> 
> 
> Hey, that's nice.
> I added a |sort -n -r to get the list sorted by "top-offendes"
> How would I grep out every single-digit percentage ?
> 
> 
> 
> cheers,
> Rainer
> 
> --
> ===================================================
> ~     Rainer Duffner - [EMAIL PROTECTED]     ~
> ~           Freising - Munich - Germany           ~
> ~    Unix - Linux - BSD - OpenSource - Security   ~
> ~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~ 
> ===================================================
> 
> 
> 

Reply via email to