🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1795

arg list too long: help?

#1795
From: Rob Lingelbach
Date: Sat, 04 Jul 1992 00:32
24 lines
1650 bytes
This might be pretty rudimentary, but I've looked at the FAQ's and
don't see the answer.

I am doing a cron job each day to grep through the news articles in a
particular directory for mention of items of interest, using "mg", the
multiline grep I picked up recently from comp.sources.unix.  The
script then mails me a notice that there are articles with my subjects
mentioned.  When I use it on the very large directory rec.arts.books,
I get mg: arg list too long

..I tried piping a find into xargs to run the command, but xargs also
complains about arg list too long.

How can I get around this elegantly?

Is anyone else doing something like this news subject search more
efficiently?

Regards--
--Rob
-- 
Rob Lingelbach KB6CUN | 2660 Hollyridge Dr LA CA 90068 213 464 6266 (voice) 
rob@xyzoom.info.com   | "I care not much for a man's religion whose dog or 
robl@netcom.com       |  cat are not the better for it."  --Abraham Lincoln
Technical Details
Message-ID: <1992Jul4.003247.26324@xyzoom.info.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!think.com!ames!apple!apple!netcomsv!xyzoom!rob

Show Full Headers
Complete Article Headers
Message-ID: <1992Jul4.003247.26324@xyzoom.info.com>
Subject: arg list too long: help?
Date: Sat, 04 Jul 1992 00:32:47 +0000
From: rob@xyzoom.info.com (Rob Lingelbach)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!think.com!ames!apple!apple!netcomsv!xyzoom!rob
Newsgroups: comp.unix.questions,news.software.readers
Reply-To: rob@xyzoom.info.com (Rob Lingelbach)
Followup-To: comp.unix.questions
Organization: Altruistic Intentions, Hollywood CA
Lines: 24