Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Need VAX VMS DCL Script for non-interactive text file searching...
@ 1994-02-26 19:33 opcode ranger
  1994-02-26 20:54 ` Carl J Lydick
  0 siblings, 1 reply; 2+ messages in thread
From: opcode ranger @ 1994-02-26 19:33 UTC (permalink / raw)


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 * 					     =
= 							 	             =
==============================================================================


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Need VAX VMS DCL Script for non-interactive text file searching...
  1994-02-26 19:33 Need VAX VMS DCL Script for non-interactive text file searching opcode ranger
@ 1994-02-26 20:54 ` Carl J Lydick
  0 siblings, 0 replies; 2+ messages in thread
From: Carl J Lydick @ 1994-02-26 20:54 UTC (permalink / raw)


In article <1994Feb26.133306.1@gsbacd.uchicago.edu>, gft_robert@gsbacd.uchicago.edu (opcode ranger) writes:
=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.

$ READ/PROMPT="List keywords (comma-separated list): " SYS$COMMAND P1
$ READ/PROMPT="List window size (before,after):" SYS$COMMAND P2
$ READ/PROMPT="Input file: " SYS$COMMAND P3
$ READ/PROMPT="Output file: " SYS$COMMAND P4
$ SEARCH/OUTPUT='P4'/WINDOW=('P2') 'P3' 'P1'
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-02-26 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-26 19:33 Need VAX VMS DCL Script for non-interactive text file searching opcode ranger
1994-02-26 20:54 ` Carl J Lydick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox