Thanks antus,
It took a while, but I fiured it out last night... Usual I guess...
Code:
####
# Create size File
#
#HEXSIZE=$(printf "%08Xn" )
#echo -n | xxd -r -p | dd obs=4 of="image/Image.size" bs=1 conv=notrunc
HEXSIZE=$(printf "%08Xn" )
echo -n | xxd -r -p | dd count=2 obs=4 of="image/Image.size1" bs=1 conv=notrunc,swab
echo -n | xxd -r -p | dd skip=2 count=2 obs=4 of="image/Image.size2" bs=1 conv=notrunc,swab
cat image/Image.size2 image/Image.size1 > image/Image.size
rm -f image/Image.size1 image/Image.size2
I also needed to invert the character so hence the reason for the two echo commands and it's the only method I could get to work....
Thanks again though antus
Bookmarks