Created
February 24, 2011 05:06
-
-
Save etagwerker/841792 to your computer and use it in GitHub Desktop.
how should I do a grep to work cross platform?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = %x[grep -r 'I18n.translate(' public/*] # this won't work in Windows | |
system("grep -r 'I18n.t(' public/*") # this won't either | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this out: https://gist.github.com/841814