busybox/qemu_multiarch_testing/extract_od_binary.sh

7 lines
225 B
Bash
Raw Normal View History

#!/bin/sh
# Converts textual result of "od -tx1 <FILE"
# back into a binary FILE
grep -a '^[0-7][0-7][0-7][0-7][0-7][0-7][0-7][0-7]* [0-9a-f][0-9a-f] [0-9a-f][0-9a-f] [0-9a-f][0-9a-f] [0-9a-f][0-9a-f]' | busybox hexdump -R