Re: Text processing on VMS

Liste des GroupesRevenir à co vms 
Sujet : Re: Text processing on VMS
De : seaohveh (at) *nospam* hoffmanlabs.invalid (Stephen Hoffman)
Groupes : comp.os.vms
Date : 13. Oct 2024, 20:38:51
Autres entêtes
Organisation : HoffmanLabs LLC
Message-ID : <veh7kb$qb7q$1@dont-email.me>
References : 1
User-Agent : Unison/2.2
On 2024-10-13 15:04:25 +0000, David Meyer said:

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? ;)
One-shot task?
Haul it over to an existing and working Unix, and "awk to it" there. It'll be easier, generally. Easier, particularly if the text file contains UTF-8, though this file is from OpenVMS so probably not.
For production use?
Other folks have listed various options to perform this task on OpenVMS.
Another option that seemingly wasn't mentioned is installing and using GNV on OpenVMS. Obligatory vim and emacs reference.
The least-accretive and easiest-to-hand-off-to-others option on OpenVMS is approximately a DCL LOOP: / READ / WRITE / GOTO LOOP procedure. Which is a slog if unfamiliar with DCL, but is entirely doable.
If this file has some sort of internal organization or syntax, use of a lib$table_parse grammar can be an option.
--
Pure Personal Opinion | HoffmanLabs LLC
Date Sujet#  Auteur
13 Oct 24 * Text processing on VMS17David Meyer
13 Oct 24 +* Re: Text processing on VMS2Chris Townley
14 Oct 24 i`- Re: Text processing on VMS1David Meyer
13 Oct 24 +- Re: Text processing on VMS1Craig A. Berry
13 Oct 24 +* Re: Text processing on VMS12Arne Vajhøj
13 Oct 24 i`* Re: Text processing on VMS11Dave Froble
13 Oct 24 i `* Re: Text processing on VMS10Arne Vajhøj
13 Oct 24 i  +* Re: Text processing on VMS5Craig A. Berry
14 Oct 24 i  i`* Re: Text processing on VMS4Arne Vajhøj
14 Oct 24 i  i +- Re: Text processing on VMS1Arne Vajhøj
14 Oct 24 i  i +- Re: Text processing on VMS1Arne Vajhøj
14 Oct 24 i  i `- Re: Text processing on VMS1Arne Vajhøj
14 Oct 24 i  `* Re: Text processing on VMS4Arne Vajhøj
14 Oct 24 i   +* Re: Text processing on VMS2Simon Clubley
14 Oct 24 i   i`- Re: Text processing on VMS1Arne Vajhøj
14 Oct 24 i   `- Re: Text processing on VMS1Dave Froble
13 Oct 24 `- Re: Text processing on VMS1Stephen Hoffman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal