Skip to content

Instantly share code, notes, and snippets.

@carlossanchezp
Created June 24, 2013 15:03
Show Gist options
  • Select an option

  • Save carlossanchezp/5850701 to your computer and use it in GitHub Desktop.

Select an option

Save carlossanchezp/5850701 to your computer and use it in GitHub Desktop.
Si queremos buscar una ruta filtrada simple o compuesta de varias por una condición debemos hacer los siguiente:
1) Simple: rake routes| grep -e foo
2) Compuesta de varias:
2.1) rake routes|egrep "(foo|bar)"
2.2) rake routes| grep -e foo -e bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment