while read ip
do
while [ ${#ip} -gt 0 ]
do
echo -n $(( 0x${ip:0:2} ))
if [ ${#ip} -gt 2 ]
then
echo -n .
fi
ip=${ip:3}
done
echo
done
MOD: vagy ez a borzalom
while read ip
do
eval echo '$((0x'${ip//:/)).\$((0x}'))'
done
[ Szerkesztve ]
Jester