summaryrefslogtreecommitdiffhomepage
path: root/qemu_multiarch_testing/extract_od_binary.sh
blob: 1006e515328d8f58e2ff2f74a5fab40e2967f780 (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-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