Last active
August 13, 2021 13:56
-
-
Save Neo23x0/cd4934a06a616ecf6cf44e36f323e551 to your computer and use it in GitHub Desktop.
String Extraction / ASCII and Wide by @RobertHaist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux | |
(strings -a -td "$@" | sed 's/^\(\s*[0-9][0-9]*\) \(.*\)$/\1 A \2/' ; strings -a -td -el "$@" | sed 's/^\(\s*[0-9][0-9]*\) \(.*\)$/\1 W \2/') | sort -n | |
macOS | |
(gstrings -a -td "$@" | gsed 's/^\(\s*[0-9][0-9]*\) \(.*\)$/\1 A \2/' ; gstrings -a -td -el "$@" | gsed 's/^\(\s*[0-9][0-9]*\) \(.*\)$/\1 W \2/') | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add it like:
sudo vi /usr/local/bin/stringex
chmod +x /usr/local/bin/stringex