cc=`hd -bx -s 29 -n 3 <"$filename"|tr -d '[ " " ]'|awk '{print $2}'` #### hd-- display files in a hexadecimal format hd [ -format (bx is binary)] [ -s(offset)] [-n (count)] [filename] tr - translate characters the -d Deletes all input characters in the input string.