[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: newcomer, questions



Reply to note from "J. R. Fox"  Tue, 28 Aug 2001
16:56:50 -0800

> If I have to leave Xy to do this, ... OTOH, this approach can't
> make use of a Boolean expression for the search, as Xy could
> do, and possibly your recommeded utility does also (?)

MiniTrue (MT) uses Unix regular expressions, which are powerful search
tools (though in form quite different from Xy wildcards). Visit
http://www.delorie.com/gnu/docs/rx/rx_3.html for a tutorial.

And, no, you don't need to leave Xy to use MT. I use the routine
below to issue searches from the CMline and import the results into
Xy. (Issue DECODE to decode it.) It's not in the Jumbo U2
but can be added to it (and requires it). Works nicely in Xy4. Basic
search usage is MINI d:\path "search string". Search begins
in directory d:\path and proceeds through all subdirectories.

Put MTR.EXE in a directory that's in the DOS path or, better still,
prepend its d:\path\ to the executable filename in User Variable
Save/Get 01.

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5mini}} MiniTrue.EXE grep routine [CLD][cr|lf]{2}{<}IF{<}V
A|50{>}<1{>}{<}PRMINI [-sw1 -sw2] [filemask1 filemask2... ] -
 ["][search_string]["]{>}{<}EX{>}{<}EI{>};*;[cr|lf];
*; {<}NT1{>}[cr|lf];*; User Variables (optional):[cr|lf]{<}SV
01,MTR.EXE{>};*; <== MiniTrue EXEcutable (prepend D:\PATH\)[c
r|lf]{<}SV02,-o1:2 -r{>};*; <== switches (o=output to file; c
ontext (lines) before:after; r=recurse through subdirs[cr|lf]
{<}SV03,{>};*; <== Reusable output file (specify d:\path\file
name or leave blank to specify MINITRUE.OUT, located in XyWri
te program directory[cr|lf];*;[cr|lf];*; {<}NT0{>}[cr|lf][BX_
]es 1[Q2_]{<}SX04,{<}IS50{>}{>};*;[cr|lf]{<}IF"-"{238}{<}IS04
{>}==0{>}{<}SV02,{>}{<}EI{>};*; Arg switch overrides default{32}
switches[cr|lf]{<}IF{<}VA|02{>}>0{>}{<}SX04,{<}IS02{>}+" "+{<
}IS04{>}{>}{<}EI{>};*;[cr|lf]{<}IF{<}VA|03{>}<1{>}{<}SX50,{<}
VA$ED{>}{>}[JM_]2.GetPath[Q2_];*;[cr|lf]{<}SX03,{<}IS50{>}+"\
MINITRUE.OUT"{>}{<}EI{>};*;[cr|lf][BX_]ernv {<}PV03{>}[Q2_]{<
}PRSearching{>};*;[cr|lf][BX_]dos/nv/x/z /c {<}PV01{>} {<}PV0
4{>} > {<}PV03{>}[Q2_]{<}PRDone{>};*;[cr|lf]{<}IF@upr({<}IS04
{>}){240}"-O"{>}[BX_]gofile {<}PV03{>}[Q2_]{<}IF@not({<}ER{>}
){>}[JM_]2.rec/100[Q2_][TF_]{<}EX{>}{<}EI{>};*;[cr|lf]{<}IF{<
}VA$WS{>}>0{>}{<}SX01,{<}VA$WA{>}{>}{<}IF{<}PV01{>}<1{>}{<}SX
01,"CAll "+{<}IS03{>}+" to view results"{>}{<}PR@01{>}{<}EX{>
}{<}EI{>}[BX_]func #{<}PV01{>}[Q2_]{<}EI{>}[BX_]ca/100 {<}PV0
3{>}[Q2_]{<}EI{>}{2}[cr|lf][cr|lf]
-nd
XPLeNCODE

--
Carl Distefano
cld@xxxxxxxx
http://users.datarealm.com/xywwweb/