On Sun, Oct 01, 2006 at 03:52:34PM +0100, Werner Schalk wrote:
> Hi,
> 
> > find /var/amavis/quarantine/spam* -type f | xargs .
> 
> this doesn't work either for some reason (8000 files might be too many?):
> 
> # find /var/amavis/quarantine/spam* -type f | xargs zgrep '^X-Envelope-To: 
> $i' | grep 'mydomain.com' | cut -c 24-43 >>list
> -bash: /usr/bin/find: Argument list too long
> 
> Any other ideas?

My fault, normal shells expand that wildcard so you have to quote it.

find '/var/amavis/quarantine/spam*' -type f | xargs

Cheers,
Henrik

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to