Skip to content

Instantly share code, notes, and snippets.

@obfusk
Last active September 29, 2023 00:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obfusk/1f8453a4e43576e76cadaa80b737c1d3 to your computer and use it in GitHub Desktop.
Save obfusk/1f8453a4e43576e76cadaa80b737c1d3 to your computer and use it in GitHub Desktop.
safer (but also much slower) strings command
#!/bin/bash
LC_ALL=C exec grep -ahPo '[\x09\x20-\x7E]{4,}' -- "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment