#!/bin/rc

rfork e

if (~ $#* 0)
	args = `{cat}
if not
	args = $*

{
	echo 'ibase=16'
	for (hex in $args)
		echo print $hex | tr a-f A-F
} | bc

