Deutsch English Français Italiano |
<veh45h$pplr$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk> Newsgroups: comp.os.vms Subject: Re: Text processing on VMS Date: Sun, 13 Oct 2024 14:39:48 -0400 Organization: A noiseless patient Spider Lines: 25 Message-ID: <veh45h$pplr$1@dont-email.me> References: <8734l0t56u.fsf@lucy.meyer21c.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 13 Oct 2024 20:39:45 +0200 (CEST) Injection-Info: dont-email.me; posting-host="a15c40dd9459a1347e07ff65fce4264f"; logging-data="845499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9GU63PROs4m83q7wFsqyOWTkQJ6LqvJ4=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:K3YhJ4VyFOpac2tE/3gswk8Gr1I= In-Reply-To: <8734l0t56u.fsf@lucy.meyer21c.net> Content-Language: en-US Bytes: 1979 On 10/13/2024 11:04 AM, 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? ;) Both Perl and gawk are available for VMS. VSI distribute Perl - Alpha and Itanium here https://vmssoftware.com/products/perl/ - x86-64 I believe comes with VMS Gawk you can get from the net - https://vms.process.com/scripts/fileserv/fileserv.com?GAWK You can also use some other script language: Python, Groovy etc.. (I like Groovy) A traditional VMS language (Cobol,Fortran,Basic,Pascal) and builtin string functionality or STR$ calls will likely be much more code. Arne