User Tools

Site Tools


old:tools:allgemein

HEX sorting

cat <hex-file> | awk '{printf(“%050s\t%s\n”, toupper($0), $0)}' | LC_COLLATE=C sort -k1,1 | cut -f2

awk '{printf(“%050s\t%s\n”, toupper($0), $0)}' <hex-file> | LC_COLLATE=C sort -k1,1 | cut -f2

cat <hex-file> | while read line; do printf “%d %s\n” “0x$line” “$line”; done | sort -n | awk '{print $2}'

old/tools/allgemein.txt · Last modified: 2023/01/11 20:29 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki