Linux shell utils: convert a list of hexadecimals to a list of decimals
Fresh3 days ago
Mar 15, 20268335 viewsConfidence Score0%
0%
Problem
How can I convert a file with a lot of hex numbers into decimal? Example: file1 I want to start and get file2 with something like: (The numbers in example output are random, as I can't convert such long hex numbers to decimal) UPDATE: I solved this with the following Perl command: Is there a better…
Error Output
0x59999 0x5acdc 0xffeff
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Linux shell utils: convert a list of hexadecimals to a list of decimals
Low Risk
John T's answer is the way to go for hex conversions, but you can also do them this way (which can be used for other bases as well): Demonstration: Edit: The only advantage over John T's answer is that this one can be easily adapted to convert other…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix