Skip to content

Instantly share code, notes, and snippets.

View klingerko's full-sized avatar

Konstantin Klinger klingerko

View GitHub Profile
@rhaist
rhaist / twoStrings.sh
Created May 26, 2015 12:09
Bash on-liner to generate ASCII and WIDE strings from a file and show a sorted output
#!/bin/bash
(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