Search Results

Search: Posts Made By: return_user
2,781
Posted By rdcwayx
Try this: awk '{s=sprintf...
Try this:
awk '{s=sprintf ("0%s",$1);a[s]=$2}END{for (i=0;i<=1048575;i++) {t=sprintf ("%05X",i);print t,(t in a)? a[t]:"00"}}' infile

I see someone use strtonum function, that some system's awk...
2,781
Posted By yinyuemi
it works on my computer cat output ..... ...
it works on my computer

cat output
.....
0C009 00
0C010 AA
0C011 AA
0C012 FE
0C013 FF
0C014 F7
0C015 FF
0C016 00
0C017 00
0C018 00
.....

Hi guy,

if the...
2,781
Posted By durden_tyler
Here's one way to do it with Perl - $ ...
Here's one way to do it with Perl -


$
$
$ # display the input file
$
$ cat input
@C010 AA
@C011 AA
@C012 FE
@C013 FF
@C014 F7
@C015 FF
$
$
$ # run the Perl one-liner to...
2,781
Posted By yinyuemi
Please show us an example of what the output is...
Please show us an example of what the output is like?
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy