#!/bin/sh

# Expects that $1 is set
if [ $1 = "-e" ]; then
	echo $2 | xxd -p -c 0
elif [ $1 = "-d" ]; then
	echo $2 | xxd -r -p -c 0
fi