rdos/host/bin2db.sh

3 lines
93 B
Bash
Raw Normal View History

#!/bin/sh
xxd -c8 -g1 "$1"|cut -d' ' -f2-9|sed 's/[0-9A-Fa-f]\{2\}/0x&/g;s/ /, /g;s/^/ db /'