Breaking down a long string and then converting hex to decimal

From another output, I have a long string:


which needs to be broken down into 64 character parts:


and then each line needs to be converted from hex to decimal with something like echo "obase=10; ibase=16; $hexNum" | bc

the hex part is easily solved. I suspect that an "awk" manipulation of the long string can break it down into 5 variable.. to which the above bc command can convert to decimal.

Read more here:

Content Attribution

This content was originally published by Matt at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: