Re: command or script for converting hex values to text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 9:35 AM +0200 9/22/06, Mogens Kjaer wrote:
ankush grover wrote:
 > hey friends,
 >
 > Is there any command on linux which converts the hexadecimal values to
 > text.

What do you mean by "text"?

I have the following aliases:

alias calc 'gawk "BEGIN{ print \!* }"'
alias hcalc 'gawk -v CONVFMT="%x\n" "BEGIN{printf CONVFMT, \!* }"'

FWIW, in bash:

function calc() { gawk "BEGIN{ print $* }"; }
function hcalc() { gawk -v CONVFMT="%x\n" "BEGIN{printf CONVFMT, $* }"; }

(Assuming that I retyped it correctly.)
--
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux