#!/bin/bash scriptname=$(basename $0 .sh) echo "$*" > /tmp/$scriptname.hex.tmp xxd -r -p /tmp/$scriptname.hex.tmp > /tmp/$scriptname.bin.tmp objdump --target=binary --architecture=i386 --disassemble-all \ /tmp/$scriptname.bin.tmp | grep '^ \{0,7\}[0-9]\+:'