0

I have the UWIN unix tools, and I can't grep a whole dir full of files with *.

grep term * 

gives

grep: *: can not open [No such file or directory]

whether in cmd.exe or powershell (I hate this windows crap). The wildcards seem to work with other stuff (ls, dir,etc.)

Ah, so the question is, why? Is there some other way of doing this?

2 Answers 2

0

An alternative set of Unix tools for Windows is MSYS. If you have msysgit installed, you might already have this on your machine.

1
  • I have gitbash, gitshell, some crappy gui git tool...never heard of msysgit. I'll have to look at that. I'm seeing it mentioned here a lot. Jan 29, 2014 at 2:06
0

Powershell :)

    PS C:\> get-childitem c:\windows\system32\*.txt -recurse | select-string -pattern "Microsoft" -casesensitive

Straight from here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .