busybox/qemu_multiarch_testing/extract_od_binary.sh
Denys Vlasenko 3b650c1e7b qemu testing: extract_od_binary.sh: support huge files (and broken od)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-10-05 16:46:29 +02:00

7 lines
225 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-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