diff options
Diffstat (limited to 'qemu_multiarch_testing/extract_od_binary.sh')
-rwxr-xr-x | qemu_multiarch_testing/extract_od_binary.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu_multiarch_testing/extract_od_binary.sh b/qemu_multiarch_testing/extract_od_binary.sh new file mode 100755 index 0000000..e4c2c2a --- /dev/null +++ b/qemu_multiarch_testing/extract_od_binary.sh @@ -0,0 +1,6 @@ +#!/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 |