Unix "find" command for XP

Unix "find" command for XP

Post by Dave Elan » Fri, 17 May 2002 03:21:52



In the Unix environment, there is a "find" command that will recursively
traverse the file directories in a system.  In addition to simply listing the
names of files that are encountered while doing that traversal, you can also
issue commands that process each file you select (e.g. erase the file, edit the
file in some way, etc.).

Does anyone know of a command or utility program for Windows XP that provides
this same functionality?

Thanks for your help!

Dave Eland

 
 
 

Unix "find" command for XP

Post by Jerry » Fri, 17 May 2002 04:21:28


There are several distributions of Unix tools for Windows, such
as MKS Toolkit, and Services for Unix from Microsoft.


> In the Unix environment, there is a "find" command that will recursively
> traverse the file directories in a system.  In addition to simply listing
the
> names of files that are encountered while doing that traversal, you can
also
> issue commands that process each file you select (e.g. erase the file,
edit the
> file in some way, etc.).

> Does anyone know of a command or utility program for Windows XP that
provides
> this same functionality?

> Thanks for your help!

> Dave Eland



 
 
 

Unix "find" command for XP

Post by Dave Elan » Fri, 17 May 2002 04:40:48


Thanks for your response.  I have looked up what information I can find on these
two solutions, and I do not see anything with the functionality of the Unix
"find" command.  Of course, it may not have apparent in the documentation that
lists the commands that are avasilable.  Did I miss something?

Dave Eland


> There are several distributions of Unix tools for Windows, such
> as MKS Toolkit, and Services for Unix from Microsoft.

 
 
 

Unix "find" command for XP

Post by Jerry » Fri, 17 May 2002 04:55:12


The "find" command is one of the Unix tools supplied with either of
these packages.

Here's a web page from the MKS site:

http://www.mkssoftware.com/docs/man1/find.1.asp


> Thanks for your response.  I have looked up what information I can find on
these
> two solutions, and I do not see anything with the functionality of the
Unix
> "find" command.  Of course, it may not have apparent in the documentation
that
> lists the commands that are avasilable.  Did I miss something?

> Dave Eland


> > There are several distributions of Unix tools for Windows, such
> > as MKS Toolkit, and Services for Unix from Microsoft.

 
 
 

Unix "find" command for XP

Post by Ray Abbit » Fri, 17 May 2002 06:15:23



Quote:>In the Unix environment, there is a "find" command that will recursively
>traverse the file directories in a system.  In addition to simply listing the
>names of files that are encountered while doing that traversal, you can also
>issue commands that process each file you select (e.g. erase the file, edit the
>file in some way, etc.).

Actually find just finds the file. In the tradition of Unix, it finds
the file(s) and passes it's output on to other Unix utilities via redirection
(>, >>) or pipes (|)
Quote:

>Does anyone know of a command or utility program for Windows XP that provides
>this same functionality?

Cygwin <http://www.cygwin.com> is probably exactly what you are looking
for. Not only do they have find, but they have ports of most other Unix
utilities that work with all versions of Windows since 95 (except for CE)
(Including the XFree86 X-server and utilities) I've used various versions
of the Cygwin utilities for years.

-ray

 
 
 

Unix "find" command for XP

Post by Gregory Phillip » Fri, 17 May 2002 06:04:48


NT (aka Win2K and WinXP) was required by the federal government
to support a minimum set of UNIX like commands (POSIX).  Also the
NT Resource Kit (which you used to be able to download) had some more
commands for the UNIX die hards.  A listing of my old NT Resource Kit\POSIX
directory shows:

 Directory of C:\Program Files\NT4ResKit\POSIX

05/25/2000  08:40 PM    <DIR>          .
05/25/2000  08:40 PM    <DIR>          ..
03/01/1996  12:00 AM           101,748 CAT.EXE
03/01/1996  12:00 AM           116,188 CHMOD.EXE
03/01/1996  12:00 AM           110,920 CHOWN.EXE
03/01/1996  12:00 AM           111,208 CP.EXE
03/01/1996  12:00 AM           173,580 FIND.EXE
03/01/1996  12:00 AM           144,256 GREP.EXE
03/01/1996  12:00 AM            90,960 LN.EXE
03/01/1996  12:00 AM           128,532 LS.EXE
03/01/1996  12:00 AM            88,984 MKDIR.EXE
11/03/1996  04:50 PM                 0 MSCREATE.DIR
03/01/1996  12:00 AM            99,096 MV.EXE
03/01/1996  12:00 AM           114,564 RM.EXE
03/01/1996  12:00 AM            85,004 RMDIR.EXE
03/01/1996  12:00 AM           362,528 SH.EXE
03/01/1996  12:00 AM            91,244 TOUCH.EXE
03/01/1996  12:00 AM           287,628 VI.EXE
03/01/1996  12:00 AM            95,392 WC.EXE
              17 File(s)      2,201,832 bytes
               2 Dir(s)   9,670,885,376 bytes free

C:\Program Files\NT4ResKit\POSIX>.\find /?
usage: posix /c <path> [<args>]

C:\Program Files\NT4ResKit\POSIX>

Also there are MANY after market application that offer various "shells"
that you can run under NT (aka XP) and provide an even more complete
translation of the old UNIX command line stuff.

You might want to look into Windows scripting as well.  Like shell scripts
under UNIX, Windows scripts are programming languages that let you
do almost anything if you are willing to study the languages (vbscript, Jscript,
or WshScript).  See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/scri...

>In the Unix environment, there is a "find" command that will recursively
>traverse the file directories in a system.  In addition to simply listing the
>names of files that are encountered while doing that traversal, you can also
>issue commands that process each file you select (e.g. erase the file, edit the
>file in some way, etc.).

>Does anyone know of a command or utility program for Windows XP that provides
>this same functionality?

>Thanks for your help!

>Dave Eland


---

 
 
 

Unix "find" command for XP

Post by Dave Elan » Fri, 17 May 2002 06:30:32


Thanks for you follow-up response.  The PDF file info I had found did not lead
to the same info that you pointed out.

Dave Eland


> The "find" command is one of the Unix tools supplied with either of
> these packages.

> Here's a web page from the MKS site:

> http://www.mkssoftware.com/docs/man1/find.1.asp



> > Thanks for your response.  I have looked up what information I can find on
> these
> > two solutions, and I do not see anything with the functionality of the
> Unix
> > "find" command.  Of course, it may not have apparent in the documentation
> that
> > lists the commands that are avasilable.  Did I miss something?

> > Dave Eland


> > > There are several distributions of Unix tools for Windows, such
> > > as MKS Toolkit, and Services for Unix from Microsoft.

 
 
 

Unix "find" command for XP

Post by Dave Elan » Fri, 17 May 2002 07:44:33


I tried this, and it provided what I was looking for.

Thanks!

Dave Eland



> >In the Unix environment, there is a "find" command that will recursively
> >traverse the file directories in a system.  In addition to simply listing the
> >names of files that are encountered while doing that traversal, you can also
> >issue commands that process each file you select (e.g. erase the file, edit the
> >file in some way, etc.).

> Actually find just finds the file. In the tradition of Unix, it finds
> the file(s) and passes it's output on to other Unix utilities via redirection
> (>, >>) or pipes (|)

> >Does anyone know of a command or utility program for Windows XP that provides
> >this same functionality?

> Cygwin <http://www.cygwin.com> is probably exactly what you are looking
> for. Not only do they have find, but they have ports of most other Unix
> utilities that work with all versions of Windows since 95 (except for CE)
> (Including the XFree86 X-server and utilities) I've used various versions
> of the Cygwin utilities for years.

> -ray