Skip to content

Instantly share code, notes, and snippets.

@l0b0
Created November 29, 2010 11:53
Show Gist options
  • Save l0b0/719872 to your computer and use it in GitHub Desktop.
Save l0b0/719872 to your computer and use it in GitHub Desktop.
Count the number of zero bytes in a string
# Can be used to for example count the number of files returned by `find ... -print0`
grep -cz . -- -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment