Think before you speak, read before you think.

shell 遍历 0-f

by

in
for i in `seq 0 15`
do
letter=$(printf '%#x' $i | sed -e 's/0x//g')
echo $letter
done

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *