2

What am I missing with this Findstr command?

X:\Admin>findstr /s/i/c:"permission denied" *.*
FINDSTR: // ignored
FINDSTR: // ignored

X:\Admin>findstr -s-i-c:"permission denied" *.*
FINDSTR: /- ignored
FINDSTR: /- ignored

X:\Admin>
xarzu
  • 8,657
  • 40
  • 108
  • 160

2 Answers2

4

Add spaces between the parameters:

findstr /s /i /c:"permission denied" *.*
mandaleeka
  • 6,577
  • 1
  • 27
  • 34
  • 2
    The other option is to combine the options with only one option prefix: `findstr /sic:"permission denied" *` or `findstr -sic:"permission denied" *` – dbenham Jan 25 '13 at 02:15
  • @dbenham, Such weird syntaxes, do they follow any standards? – Pacerier Apr 21 '15 at 21:07
  • 1
    @Pacerier - Hell no! See [What are the undocumented features and limitations of the Windows FINDSTR command?](http://stackoverflow.com/q/8844868/1012053) to get a sense of just how chaotic this command can be. – dbenham Apr 21 '15 at 21:14
2

You should leave a space between options

 findstr /s /i /c:"permission denied" *.*
Steve
  • 213,761
  • 22
  • 232
  • 286
  • 1
    The other option is to combine the options with only one option prefix: `findstr /sic:"permission denied" *` or `findstr -sic:"permission denied" *` – dbenham Jan 25 '13 at 02:15