title: How does this script work to convert the hex to ascii?
body: <p>I have got a script which can convert the hex to ASCII, but I donnot know how does it work. Also, I am not sure if it is correct.</p>
  
  <p>I wanna know how does it work. 
  The usage is ./hexToASCII ｛hex String｝> {file}</p>
  
  <pre><code>hex="$1"
  
  # Convert Hexa decimal to ASCII
  for i in $(awk -v len=$(expr "$hex" : '.*') 'BEGIN {for(i=1;i&lt;len;i=i+2) print i;}')
  do
    awk -v d=$(printf "ibase=16\n%s\n" $(echo $hex|cut -c$i-$(expr $i + 1)) | bc) 'BEGIN {printf("%c",d);}'
  done
  </code></pre>