Answer the question
In order to leave comments, you need to log in
How to find files that don't contain the string "something"?
There is a folder with a project, in which there are ~ 10k files and you need to find files with the extension .html and .htm, which do not contain the defined string "something"
There is such a solution in powershell, but it does not search in subdirectories
gci |foreach-object{if (-not (select-string -inputobject $_ -Pattern "something")){$_}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question