Xref: utzoo news.software.b:6404 news.software.nntp:981 news.newusers.questions:3490 Path: utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: news.software.b,news.software.nntp,news.newusers.questions Subject: Re: Need to send articles to a new site Message-ID: <1990Dec14.192717.21836@mp.cs.niu.edu> Date: 14 Dec 90 19:27:17 GMT References: <1990Dec14.162617.5428@ssd.kodak.com> Distribution: na Organization: Northern Illinois University Lines: 33 In article <1990Dec14.162617.5428@ssd.kodak.com> dcox@tweety.ssd.kodak.com (Don Cox (253-7121)) writes: >How do I send all of the articles available in a select newsgroup to >... >newsgroup to them. I can (and did) create a file called >machinename.abc.def.com in /var/spool/news/out.going >and added a line for each article ... such as: > >/usr/spool/news/ours/general/1 >/usr/spool/news/ours/general/2 >... >/usr/spool/news/ours/general/8 >etc. > >I tried a wildcard (*) instead of an article number, but it didn't >work. How does one send hundreds of articles to a site without >typing in hundreds of entries? > Using the cshell, I would just do something like: foreach article ( [0-9]* ) echo $cwd/$article >> $batchfile end Similar command sequences exist for other reasonable shells. Combining this with find, and a relatively simple sed filter you should be able to do the whole news spooling directory with very little effort. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940