Skip to content

Instantly share code, notes, and snippets.

@djibe
Created June 10, 2024 17:39
Show Gist options
  • Save djibe/91da1088a2cf803cce4a54cc73595007 to your computer and use it in GitHub Desktop.
Save djibe/91da1088a2cf803cce4a54cc73595007 to your computer and use it in GitHub Desktop.
Windows: List files not containing a string

Windows : How to list files not containing a string

In the current folder, list all markdown files that don"t have the "draft" string:

@for /r %f in (*.md) do @find "draft" "%f" > nul || echo %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment