[nSLUG] Directory Maven

Oliver Doepner odoepner at gmail.com
Sun Apr 9 20:48:43 ADT 2017


On Unix/Linux the locate and slocate commands provide faster file or
directory searches by using a database: http://www.linfo.org/locate.html

On Sun, Apr 9, 2017 at 8:23 AM, Richard Bonner <ak621 at chebucto.ns.ca> wrote:

>
> On Sat, 8 Apr 2017, Joel Maxuel wrote:
>
> I guess I didn't know "select" existed - I was aware of "choose" in DOS,
>> and was reminded of that when I was working on this, but I guess I went to
>> design a "select" myself instead of asking the right question.
>>
>
> ***   That would be `CHOICE.com' in DOS.  (-:
>
>
> I should still note that the find process is slow for me.  Even my laptop
>> equipped with an SSD took several seconds to find all the bin's in
>> /home/joel (there is 140,000+ directories to compare names of because I
>> have some android source there, for example).
>>
> (Snip)
>
> I am wondering if there is a way to leverage the locate database
>> and return strictly directories.
>>
> (Snip)
>
>> --
>> Joel Maxuel
>>
>
> ***   In DOS, Directory Maven (DM) does it by scanning each drive letter
> and storing only directories and their paths in a plain-text database. DM
> looks there for each request rather scanning the tree each time. It then
> presents selectable matches in a window that opens on the command-line
> screen.
>
>    DIR has a "Directories Only" switch; I can't remember, does LS have an
> equivalent switch? If so, one could have LS scan for only directories and
> send the results to a file. That could be scanned each time a user wants to
> jump straight to another directory. No tree crawling.
>
>    For me when using DOS, I try to make unique directory names so that the
> DM window never opens; I am just taken immediately to the directory I
> requested. Even when the window does pop up, the choices are limited
> because fewer directories start with the letters I typed. Thus, I can make
> faster selections.
>
>    I should also mention that PKZIP's `PKZFIND' has a directory option,
> but it scans the tree each time. Still, I have found this to be useful at
> times when I just want to jump somewhere within the same tree branch.
>
>  Richard
>
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/mailman/listinfo/nslug
>



-- 
Oliver Doepner
Halifax, Nova Scotia
http://oliver.doepner.net/
Buchstabensalat : ßäöüÄÖÜ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nslug.ns.ca/pipermail/nslug/attachments/20170409/2d60e47a/attachment.html>


More information about the nSLUG mailing list