From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,b47e0aaeb3830892 X-Google-Attributes: gidf7344,public X-Google-Thread: f7cd1,b47e0aaeb3830892 X-Google-Attributes: gidf7cd1,public X-Google-Thread: 1164f8,b47e0aaeb3830892 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-26 11:33:06 PST Xref: gmd.de comp.os.vms:41046 comp.sys.dec:13629 vmsnet.misc:2091 Newsgroups: comp.os.vms,comp.sys.dec,vmsnet.misc Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!uchinews!gsbacd.uchicago.edu!gft_robert From: gft_robert@gsbacd.uchicago.edu (opcode ranger) Subject: Need VAX VMS DCL Script for non-interactive text file searching... Message-ID: <1994Feb26.133306.1@gsbacd.uchicago.edu> Sender: news@uchinews.uchicago.edu (News System) Organization: ���� Date: Sat, 26 Feb 1994 19:33:06 GMT Can anyone send me a VAX VMS DCL script which I can use to search through a VAX text file for certain keywords and extract portions of that text file around the keywords to another text file? What I'm trying to do is to set up an automated system to read NEWS on a non-interactive basis, extract all the unread articles to a text file on a scratch disk, and search through the file for articles containing certain keywords and extract those to another file, which I can download at a later point when I logon on an interactive basis. In particular I'm keen to extract the jobs.offered newsgroup and search through for certain keywords, e.g. geographic locations. The reason that it's not feasible to log-on and simply use the DCL 'search' command to interactivly peruse the file is that I have to log on to this Chicago site via Ma Bell long distance from Connecticut, and it's just prohibitively expensive to do it that way. I realize that NEWS has a built-in search capability, but that doesn't -- for whatever reason -- seem to work at my site; it just basically screws things up, so it's not really an option either. If you can send me a script for searching and extracting that would be useful in the above context, I'd really appreciate it! If you can send me an entire .COM file for the non-interactive procedure of reading NEWS, searching and extracting, etc., that would be most excellent! Thanks in advance! Robert -- ============================================================================== = gft_robert@gsbacd.uchicago.edu * = = = ==============================================================================