TLDRBins TLDRBins / Grep


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

General

grep '<STRING>' <FILE>
Sample Output: TO-DO

Grep from Files Recursively

grep -rni '<STRING>' <PATH>
Sample Output: TO-DO

Grep from Binary

grep -a '<STRING>' <FILE>
Sample Output: TO-DO

Grep Hash from Binary with Perl Regex

grep -aPo '[a-fA-F0-9]{32}' <FILE>
Sample Output: TO-DO

Grep from Binaries Recusively

grep -rHa "<STRING>" <PATH>
Sample Output: TO-DO

Find Unique Char from a File

cat <FILE> | od -cvA none -w1 | sort -bu | tr -d '\n' | tr -d ' '
Sample Output: TO-DO