Skip to content

Instantly share code, notes, and snippets.

@bajansen
Created October 11, 2017 11:02
Show Gist options
  • Save bajansen/5891612efa09ca91a306da4dd948d281 to your computer and use it in GitHub Desktop.
Save bajansen/5891612efa09ca91a306da4dd948d281 to your computer and use it in GitHub Desktop.
Convert Intel hex file to plain binary
function ihex2bin { cut -c 10- $1 | sed 's/...$//' | tr -d '\n' | xxd -r -p > $1.bin; }
export -f ihex2bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment