Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Witch! Witch! They'll burn ya! -- Hag, "Tomorrow is Yesterday", stardate unknown


devel / comp.os.cpm / New CP/M utility programs: grep & eraq

SubjectAuthor
o New CP/M utility programs: grep & eraqladislau szilagyi

1
New CP/M utility programs: grep & eraq

<857c9b79-e61b-41ed-99c9-02b653913b58n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4239&group=comp.os.cpm#4239

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:3114:b0:61a:6edb:423b with SMTP id ks20-20020a056214311400b0061a6edb423bmr826280qvb.1.1685081525729;
Thu, 25 May 2023 23:12:05 -0700 (PDT)
X-Received: by 2002:a05:620a:1a94:b0:75b:262d:4051 with SMTP id
bl20-20020a05620a1a9400b0075b262d4051mr362099qkb.7.1685081525432; Thu, 25 May
2023 23:12:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 25 May 2023 23:12:05 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=86.125.83.230; posting-account=Zav8fAoAAACRqOOZYggbw7GhvvIJEzFn
NNTP-Posting-Host: 86.125.83.230
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <857c9b79-e61b-41ed-99c9-02b653913b58n@googlegroups.com>
Subject: New CP/M utility programs: grep & eraq
From: ladislau_szilagyi@euroqst.ro (ladislau szilagyi)
Injection-Date: Fri, 26 May 2023 06:12:05 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2212
 by: ladislau szilagyi - Fri, 26 May 2023 06:12 UTC

GREP ( https://github.com/Laci1953/RC2014-CPM/tree/main/grep )

It's a simple "UNIX" - like grep:

Use: grep filename.ext
please enter the string to be searched, followed by a <CR>:

Lists the files containing the specified string
( ambiguous file references may be used, e.g. *.c or test?.asm )
( up to 512 files can be searched )

Example of use:

c>dir *.c
C: TEST C : TECONF C : TEEDIT C : TEERROR C
C: TEFILE C : TE C : TELINES C : TEMISC C
C: TEUI C : TEKEYS C : TETRIS C : BE C
C: TEWS52 C : TEUI1 C
c>grep *.c

please enter the string to be searched, followed by a <CR>:while
TEEDIT.C
TE.C
TEUI.C
TETRIS.C
BE.C
c>

--------------

ERAQ ( https://github.com/Laci1953/RC2014-CPM/tree/main/eraq )

Erase with querry

Use: eraq filename.ext
erase the requested files, with a querry for each matching file
( ambiguous file references may be used, e.g. *.c or test?.asm )
( up to 512 files can be erased )

Example of use:

c>dir ?.as
C: X AS : Y AS

c>eraq ?.as

Erase file X.AS ? (Y/y = yes) :y
Erase file Y.AS ? (Y/y = yes) :n
c>dir ?.as
C: Y AS
c>

-----------

Ladislau

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor