blob: e997b209912aec246d76609cc910bb1806a11cff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
(
if [ x"$USE_BC" = x1 ]; then
echo -n "obase=16; "
#echo 'obase=16;if (last<16) 0; 10;' | bc
fi
if [ x"$1" = x ]; then
cat
else
echo "$1"
fi
) | (
if [ x"$USE_BC" = x1 ]; then
(
echo -n 0
bc -q
) | tail -c3
else
cat ./scripts/dec2hex.d/"$(cat)"
fi
)
|