• New CP/M utility programs: grep & eraq

    From ladislau szilagyi@21:1/5 to All on Thu May 25 23:12:05 2023
    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:

    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
    grep *.c

    please enter the string to be searched, followed by a <CR>:while
    TEEDIT.C
    TE.C
    TEUI.C
    TETRIS.C
    BE.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:

    dir ?.as
    C: X AS : Y AS

    eraq ?.as

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


    -----------

    Ladislau

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)