View Single Post
  #2  
Old November 10th 18, 10:06 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default windows batch file find command cmd line string

Logan,

Is there any way to run a find like that on Windows


I'm missing a description of the problem you encountered.

What, in that command line, doesn't work for you ? What should it do and
what does it do instead.


Also, you could do worse than to explain what the non-windows parts (xargs)
of that command should be doing / what the whole command is supposed to be
doing.

Looking at your description (find a string in a set of textfiles) it looks
to be way over-engeneered. Which means that I most likely am missing
something (which might have to do with me not having a clue what those
"xargs" parts are supposed to be doing :-) ).

Trying to use XPs "find" won't work that well: It will output the name of
*every* file it works on, regardless of if it contains what you're looking
for or not.

Personally I use a (Borland 1989 - very old) DOS version of GREP, which can
output the filenames and every line it finds a string on, or only display
filenames (and has a slew of other possibly usefull arguments).

Regards,
Rudy Wieser

P.s.
If you can use a command on the commandline you can use it in a batchfile.
Its as simple as that.


Ads