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

Binary file (standard input) matches #49

Closed
dd404x opened this issue Sep 9, 2020 · 1 comment
Closed

Binary file (standard input) matches #49

dd404x opened this issue Sep 9, 2020 · 1 comment

Comments

@dd404x
Copy link

dd404x commented Sep 9, 2020

After gf runs for a period of time, it will treat the input file as a binary file, and grep can usually be solved by using the -a option. But how can gf avoid this problem
image

@robre
Copy link

robre commented Nov 9, 2020

I suppose you can just add the -a flag to your pattern definition

@dd404x dd404x closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants