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

Support to search in binary files #548

Closed
Sworddragon opened this issue Apr 22, 2015 · 7 comments
Closed

Support to search in binary files #548

Sworddragon opened this issue Apr 22, 2015 · 7 comments
Labels

Comments

@Sworddragon
Copy link

I'm missing an option that does also search in all binary files and provide at least a hint like grep if there is a match. Maybe such an option could be added in ack 2.

@petdance
Copy link
Collaborator

Can you describe your use case for this, why you'd want to use ack for this task rather than grep that already does it just fine?

@Sworddragon
Copy link
Author

As I know there is no way with grep to search a location without the help of external tools (like searching anything in /). This is the reason why I'm using ack in such cases as the usage is here more simple.

@petdance
Copy link
Collaborator

I don't think I understand what you're saying. Are you saying that grep can't search / but ack can? Tell me more.

@Sworddragon
Copy link
Author

Are you saying that grep can't search / but ack can?

Without external tools I don't know a way. If there should be any this ticket can be marked as invalid.

@petdance
Copy link
Collaborator

Show me how you're trying to search / with ack. Are you just doing this?

ack / somestring

And the equivalent grep doesn't work?

grep -R somestring /

@Sworddragon
Copy link
Author

Ah, grep is able to search a directory if a specific option is given. If you don't think ack needs then an option to search in binary files then just close this ticket.

@petdance
Copy link
Collaborator

Yes, with grep you must always specify a filename or directory to start at. ack is different in that it assumes the current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants