busybox/qemu_multiarch_testing/extract_od_binary.sh
Denys Vlasenko 12efcf3285 Add qemu_multiarch_testing/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-10-05 09:04:04 +02:00

7 lines
219 B
Bash
Executable File

#!/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-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