Post #1555930
2026-03-12 01:31 UTC
@keirFox Sweet, grep to the rescue:
grep -RPla '\0{100}' /wherever
this looks for 100 null bytes in a row. (-RPla = recursive, PCRE regex, only print filenames instead of printing matching lines, also search binary files.)
If you want only things that are entirely null, I bet I could whip up a perl script or something.
Replies (1)
-
@IceWolf@masto.brightfur.net 2026-03-12 01:32
@keirFox (I don't know if -P is required here, I just didn't feel like bothering to see if grep extended regex has {n} repetition support)