get-single-token 429 B

123456789101112
  1. #!/bin/sh
  2. # This is a shell script to get the binary (in hex format)
  3. # from a file created on the TI-84 that contains a single
  4. # token. This is to add new tokens very quick and easy.
  5. # Note: Sometimes a token only uses only one binary, but
  6. # sometimes two. Be careful about that.
  7. [ -z "$*" ] && echo "Error: No Arguments provided" && exit 1
  8. od -A x -t x1z -v "$1"
  9. od -A x -t x1z -v "$1" | awk '{if(NR==5) print $12 " " $13}'