[Info-vax] Search for folders

Arne Vajhøj arne at vajhoej.dk
Sat Jan 27 15:51:49 EST 2024


On 1/27/2024 3:22 PM, Arne Vajhøj wrote:
> Here comes a user example.
> 
> $ dir [...]
> 
> Directory DKA0:[arne.fun]
> 
> fun.txt;1           morefun.DIR;1
> 
> Total of 2 files.
> 
> Directory DKA0:[arne.fun.morefun]
> 
> morefun.txt;1
> 
> Total of 1 file.
> 
> Grand total of 2 directories, 3 files.
> 
> $ define/nolog funroot DKA0:[arne.fun.] /transl=(conc,term)
> $ define/nolog morefunroot DKA0:[arne.fun.morefun.] /transl=(conc,term)
> $ dir funroot:[000000]
> 
> Directory FUNROOT:[000000]
> 
> fun.txt;1           morefun.DIR;1
> 
> Total of 2 files.
> $ dir morefunroot:[000000]
> 
> Directory MOREFUNROOT:[000000]
> 
> morefun.txt;1
> 
> Total of 1 file.
> 
> $ define/nolog doublefunroot funroot,morefunroot
> $ dir doublefunroot:[000000]
> 
> Directory funroot:[000000]
> 
> fun.txt;1           morefun.DIR;1
> 
> Total of 2 files.
> 
> Directory morefunroot:[000000]
> 
> morefun.txt;1
> 
> Total of 1 file.
> 
> Grand total of 2 directories, 3 files.

Just realized that it does not really show why
all that stuff is needed.

More complex example:

$ dir [.fun...]

Directory DKA0:[arne.fun]

fun.txt;1           morefun.DIR;1       sub.DIR;1

Total of 3 files.

Directory DKA0:[arne.fun.morefun]

morefun.txt;1       sub.DIR;1

Total of 2 files.

Directory DKA0:[arne.fun.morefun.sub]

z.z;1

Total of 1 file.

Directory DKA0:[arne.fun.sub]

z.z;1

Total of 1 file.

Grand total of 4 directories, 7 files.
$ define/nolog funroot DKA0:[arne.fun.] /transl=(conc,term)
$ define/nolog morefunroot DKA0:[arne.fun.morefun.] /transl=(conc,term)
$ define/nolog doublefunroot funroot,morefunroot
$ set def doublefunroot:[000000]
$ dir

Directory funroot:[000000]

fun.txt;1           morefun.DIR;1       sub.DIR;1

Total of 3 files.

Directory morefunroot:[000000]

morefun.txt;1       sub.DIR;1

Total of 2 files.

Grand total of 2 directories, 5 files.
$ set def [.sub]
$ dir

Directory funroot:[000000.sub]

z.z;1

Total of 1 file.

Directory morefunroot:[000000.sub]

z.z;1

Total of 1 file.

Grand total of 2 directories, 2 files.

$ define/nolog notfun DKA0:[arne.fun],DKA0:[arne.fun.morefun]
$ set def notfun
$ dir

Directory DKA0:[arne.fun]

fun.txt;1           morefun.DIR;1       sub.DIR;1

Total of 3 files.

Directory DKA0:[arne.fun.morefun]

morefun.txt;1       sub.DIR;1

Total of 2 files.

Grand total of 2 directories, 5 files.
$ set def [.sub]
$ dir

Directory DKA0:[arne.fun]

fun.txt;1           morefun.DIR;1       sub.DIR;1

Total of 3 files.

Directory DKA0:[arne.fun.morefun]

morefun.txt;1       sub.DIR;1

Total of 2 files.

Grand total of 2 directories, 5 files.

Arne




More information about the Info-vax mailing list