Skip to content

Instantly share code, notes, and snippets.

@secretGeek
Created July 7, 2015 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secretGeek/27a5678907e1803a5a15 to your computer and use it in GitHub Desktop.
Save secretGeek/27a5678907e1803a5a15 to your computer and use it in GitHub Desktop.
todo.ps1
dir *.md | % { $file = $_.Name; get-content $_ | select-string -pattern "//TODO:" | % { $file.substring(0,10) + ":" + $_.ToString().replace("//TODO:","").trim() }} | more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment