Skip to content

Instantly share code, notes, and snippets.

@doekman
Forked from secretGeek/count.ps1
Created October 2, 2014 07:36
Show Gist options
  • Save doekman/c5e51109d59480c50f45 to your computer and use it in GitHub Desktop.
Save doekman/c5e51109d59480c50f45 to your computer and use it in GitHub Desktop.
Get-Content *.md | Measure-Object –Word | % { $count = $_.Words }
hg add
$message = "words: " + $count
$todo = (get-content .\todo.txt | select-string -pattern "[_]").length
$done = (get-content .\todo.txt | select-string -pattern "[x]").length
$message = $message + ", tasks: " + $done + "/" + ($todo + $done) + ""
hg commit -m $message
& .\progress.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment