aboutsummaryrefslogtreecommitdiff
path: root/qemu_multiarch_testing/extract_od_binary.sh
blob: e4c2c2a0ab134afb9acef768ab8e4d62ab5a919e (plain)
1
2
3
4
5
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