OurBigBook About$ Donate
 Sign in+ Sign up

 grep large binary files

ID: grep-large-binary-files

 Top articles Latest articles+ New article in topic
grep large binary files by Ciro Santilli 37  Updated 2025-05-26  +Created 1970-01-01
This is a weak point of grep, it can't handle large lines that don't fit fully into memory:
  • superuser.com/questions/1703029/is-there-a-limit-for-a-line-length-for-grep-command-to-process-correctly what is the grep line limit?
  • unix.stackexchange.com/questions/223078/best-way-to-grep-big-binary-file/758528#758528 Ciro's bgrep canon
  • large not required but mentioning bgrep anyways:
    • superuser.com/questions/1368263/use-grep-for-a-long-line-to-get-the-part-of-the-line/1811969#1811969
    • unix.stackexchange.com/questions/217936/equivalent-command-to-grep-binary-files/758544#758544
    • stackoverflow.com/questions/2034799/how-to-truncate-long-matching-lines-returned-by-grep-or-ack/77263826#77263826
    • stackoverflow.com/questions/9988379/how-to-grep-a-text-file-which-contains-some-binary-data leaving this one alone for now
  • stackoverflow.com/questions/65674717/how-to-check-if-a-binary-file-is-contained-inside-another-binary-from-the-linux search pattern from file
 Read the full article
Total articles: 1

 New to topics? Read the docs here!

 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook