[Info-vax] Text processing on VMS
Chris Townley
news at cct-net.co.uk
Sun Oct 13 11:20:20 EDT 2024
On 13/10/2024 16:04, David Meyer wrote:
> I've got a text file with data that I want to select lines matching
> certain character strings, then extract string values from the selected
> lines by character position. On Unix, I would use awk or Perl. Does VMS
> have a similar tool, should I use my favorite programming language and
> call the STR$ RTL, can I write a TPU script to do this, or should I
> transfer the file to a Unix box and user awk or Perl? ;)
>
I have often done this in this manner:
Search file for matching records to second file.
Read through in a DCL loop, and use f$locate to find the string, then
f$extract to extract what I want, then write to a third file.
--
Chris
More information about the Info-vax
mailing list