Skip to content

Instantly share code, notes, and snippets.

@NigelThorne
Created June 25, 2012 23:57
Show Gist options
  • Select an option

  • Save NigelThorne/2992186 to your computer and use it in GitHub Desktop.

Select an option

Save NigelThorne/2992186 to your computer and use it in GitHub Desktop.
grep on windows
@REM On windows grep's slashes are the wrong way around.
@"%~dp0tools\grep.exe" %* | ruby -n -e' x = $_.split(":"); x[0].gsub!(/\//, "\\"); puts x.join(":")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment