Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

betty show me all [EXTENSION] files that contain STRING #19

Closed
rudiedirkx opened this issue May 5, 2014 · 2 comments
Closed

betty show me all [EXTENSION] files that contain STRING #19

rudiedirkx opened this issue May 5, 2014 · 2 comments

Comments

@rudiedirkx
Copy link

  • EXTENSION is optional, so you could ask her for all files
  • STRING can contain spaces, using "I contain spaces"

I never remember how.

pickhardt added a commit that referenced this issue May 6, 2014
Find module for searching files (#19)
@krainboltgreene
Copy link

@rudiedirkx
Copy link
Author

Aw yeah. But can you make it match more extensions? Something like

$ betty find me all inc,module files that contain test

Your grep-only solution is much simpler than the one I used last time:

$ find | grep \/custom\/ | grep '\.inc\|\.module' | xargs grep -l "'#theme' => 'field'" | xargs grep -C5 "'#theme' => 'field'"

only mine also checks for a /custom/ folder. And grep context.

This was referenced May 10, 2014
@pannous pannous closed this as completed May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants