BOTAN jpg creating on LINUX #12025年10月23日 21:42



[Extract]
|------- 20 -------||------- 20 -------| 
2025-10-11 00:27:54|94A662B29AB26094A662
B2A0A86103F042CCFF800000FFD8FFE000104A46
494600010100000100010000FFDB00430050373C
463C32504641465A55505F78C882786E6E78F5AF
B991C8FFFFFFFFFFFFFFFFFFFF||BX1AD-PL04vq

> [5407] is the number of rows in the csv file.
> [5407] decimal = [151f] hexadecimal
> Save the following as [ext080.rb]

[ext080.rb]
for i in 0..0x151f
printf("grep 03F042CCFF80%04X 20251023btn.csv | head -1 | cut -c 65-186 >> 20251023btn_80_cut.hex\n", i)
end

[Terminal]
$ ruby ext080.rb
$ ruby ext080.rb > 51023btn.sh
$ sh 51023btn.sh
$ cat 20251023btn_80_cut.hex > 51023btn.hex
$ tr -d '\n' < 51023btn.hex > 51023btn-oneline.hex
$ cat 51023btn-oneline.hex | xxd -r -p > 51023btn-completion.jpg

BOTAN jpg creating on LINUX #22025年10月23日 22:56



[Extract]
|------- 20 -------||------- 20 -------| 
2025-10-14 05:26:09|94A662B29AB26094A662
B2A0A86103F042CCFFD00000FFD8FFE000104A46
494600010100000100010000FFDB004300020101
0101010201010102020202020403020202020504
04030406050606060506060607||BX1AD-PL04vq

> [5407] is the number of rows in the csv file.
> [5407] decimal = [151f] hexadecimal
> Save the following as [ext0D0.rb]

[ext0D0.rb]
for i in 0..0x151f
printf("grep 03F042CCFFD0%04X 20251023btn.csv | head -1 | cut -c 65-186 >> 20251023btn_D0_cut.hex\n", i)
end

[Terminal]
$ ruby ext0D0.rb
$ ruby ext0D0.rb > 51023bt2.sh
$ sh 51023bt2.sh
$ cat 20251023btn_D0_cut.hex > 51023bt2.hex
$ tr -d '\n' < 51023bt2.hex > 51023bt2-oneline.hex
$ cat 51023bt2-oneline.hex | xxd -r -p > 51023bt2-completion.jpg