Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
deleted 1 character in body
Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir stringali -- string file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default (only ignored non-text file when you did not specify any files).

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default (only ignored non-text file when you did not specify any files).

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -ali -- string file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default (only ignored non-text file when you did not specify any files).

added 64 characters in body
Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default (only ignored non-text file when you did not specify any files).

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default.

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default (only ignored non-text file when you did not specify any files).

added 249 characters in body
Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default.

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

With GNU grep, you can use -a option to make it treats binary files as text files:

grep -alir string -- file

If your grep version does not support -a, you can use ack instead. With ack 1.x, you need to include -a option, with ack 2.x, you don't, since when searching include non-text file by default.

Source Link
cuonglm
  • 158.2k
  • 41
  • 342
  • 420
Loading