Articles

DOS command equivalent of Unix

January 26, 2006 at 07:51:57
Specs: Windows XP Professional, Pentium4/512MB

Is there a DOS equivalent of the Unix find command?

See More: DOS command equivalent of Unix

Report •


#1
January 26, 2006 at 08:06:22

In DOS and XP there is a FIND. Dunno unix, but it's tempting to speculate that they do similar tasks, albeit with their own flavor.

In XP there is FINDSTR which is somewhat like unix grep.

Here



If at first you don't succeed, you're about average.

M2


Report •

#2
January 26, 2006 at 08:26:18

dir [filename] /s [for all subfolders]

Golly gee wilerkers everyone. Learn to Internet Search


Report •

#3
January 26, 2006 at 14:15:10

What exactly do you wish to do? man find shows a lot of options, very little of which exists on dos.

Report •

Related Solutions

#4
January 30, 2006 at 06:03:32

Thanks wanderer. That's what I needed. Now all I have to do is find out how to put the ouput as input to a set command. Thanks again!

Report •

#5
January 30, 2006 at 23:30:43

If this:

dir [filename] /s [for all subfolders]

from wanderer is what you need, then you're finding files.

To get a set of commands to act on the list of files found, you need something like:

dir filename.ext /s/b>fileLIST
for /f "tokens=*" %%F in (fileLIST) do WHATEVER %%F

where WHATEVER is your command.


If at first you don't succeed, you're about average.

M2


Report •

#6
February 1, 2006 at 07:36:03

Thank you Mechanix2Go.

Report •


Ask Question