Re: recursive find to display directory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Matthias Tacke (Matthias_at_Tacke.de)
Date: 02/24/05


Date: Thu, 24 Feb 2005 16:30:02 +0100

William Hymen wrote:
> Quite some time ago I installed the MKS
> tookit, which gives me "unix find", grep, egrep, etc.
> But, I need to recursively find and display a folder
> but not hte contents, from 2 or 3 snippits of the filename-
> e.g.
>
> cd d:\file_data\root_folder
> unix-find.exe . | grep -i fx | grep -i serve | grep -i 2.3
>
> retrurns eight hits, including the files.
>
> d:\file_data\root_folder\inbox\fxapp_server2.3
> d:\file_data\root_folder\inbox\fxapp_server2.3\fxapp_server2.3.zip
> d:\file_data\root_folder\inbox\fxapp_server2.3\fxapp_server2.3.md5
> d:\file_data\root_folder\inbox\fxapp_server2.3\fxapp_server2.3.txt
> ::
> d:\file_data\root_folder\outbox\fxapp_server2.3
> d:\file_data\root_folder\outbox\fxapp_server2.3\fxapp_server2.3.zip
> d:\file_data\root_folder\outbox\fxapp_server2.3\fxapp_server2.3.md5
> d:\file_data\root_folder\outbox\fxapp_server2.3\fxapp_server2.3.txt
>
> Preferrably, I need a NT script or VB script to return just
> the root folders, *not* the contents, when I pass the
> two or three search strings: e.g. fx server 2.4
>
> should return just:
> d:\file_data\root_folder\inbox\fxapp_server2.3
> d:\file_data\root_folder\outbox\fxapp_server2.3
>
>
Dir supports multiple asterisks. If you specify in the proper order,
this should do: (provided you don't enter 2.4 and don't expect to
return 2.3 ;-)

cd d:\file_data\root_folder
DIR /AD /S/B *fx*server*2.4*

HTH

-- 
Gruesse  Greetings Saludos   Saluti    Salutations
Matthias
---------+---------+---------+---------+---------+---------+---------+


Relevant Pages

  • Re: recursive find to display directory
    ... I need to recursively find and display a folder ... > retrurns eight hits, including the files. ... I need a NT script or VB script to return just ...
    (microsoft.public.win2000.cmdprompt.admin)
  • [kde] Re: plasma-desktop (KDE factory) acting up?
    ... example is another logging plasmoid that shows the output of a little ... script that outputs the state of my four drives every ten seconds. ... I have the group set to wheel for the logs I want to be read by trusted ... folder with pictures of people, and a subfolder with pictures of myself. ...
    (KDE)
  • Re: User account and Personal folder mismatch script
    ... I believe you want a script that can be run by an administrator that will ... The script above only documents if a home folder has been assigned. ... > End Sub ...
    (microsoft.public.scripting.vbscript)
  • Input on CleanUp script
    ... Since I'm going to be using this script in a production environment, ... If the script is used with a backup folder ... var strTargetFolder, strBackupFolder, args0, args1, args2, noArgs; ...
    (microsoft.public.scripting.jscript)
  • Re: Disappearing Links
    ... I believe someone has a script for rebuilding links but I'm unable to find it at the moment. ... It could be adapted to trawl through the whole mail folder tree - if you really need that, ... -- to any contacts in the address book that match the sender of the messages ... set theSelection to selection ...
    (microsoft.public.mac.office.entourage)