summaryrefslogtreecommitdiff
path: root/qemu_multiarch_testing/extract_od_binary.sh
diff options
context:
space:
mode:
authorDenys Vlasenko2015-10-05 09:04:04 +0200
committerDenys Vlasenko2015-10-05 09:04:04 +0200
commit12efcf3285a75d197704d2eef23824b3e4f11e66 (patch)
tree1e518da57b55f527768e2d5031a71fbdca0f998f /qemu_multiarch_testing/extract_od_binary.sh
parent28b00ce6ff8cde91f3e83632e705709b7cd2ab20 (diff)
downloadbusybox-12efcf3285a75d197704d2eef23824b3e4f11e66.zip
busybox-12efcf3285a75d197704d2eef23824b3e4f11e66.tar.gz
Add qemu_multiarch_testing/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'qemu_multiarch_testing/extract_od_binary.sh')
-rwxr-xr-xqemu_multiarch_testing/extract_od_binary.sh6
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