How can I convert a file with a lot hex numbers into the decimal?
0x59999 0x5acdc 0xffeff
I want to start
$ cat file1 | util | cat >file2
and get file2 with smth like
1021489 1249230 3458080
(numbers in example output are random, as I cant convert so long hex to dec)
Upd: perl :
perl -pe '$_=hex;$_.="\n"'. Can anybody do it better?
The real task is a sorting of hex numbers.