Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Created February 24, 2011 05:06
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 etagwerker/841792 to your computer and use it in GitHub Desktop.
Save etagwerker/841792 to your computer and use it in GitHub Desktop.
how should I do a grep to work cross platform?
result = %x[grep -r 'I18n.translate(' public/*] # this won't work in Windows
system("grep -r 'I18n.t(' public/*") # this won't either
@mclosson
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment