beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Support to search in binary files #548

Closed Sworddragon closed 8 years ago

Sworddragon commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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