10-17-2002
latest reply
sure. i want to have a simple method of executing the output to an increment of 1 to 256 but in hexidecimal numbers.
My question is how do I on the fly, convert
the ouput of "seq 1 256" to it's corresponding hexadecimal equivalents. that's all I need to know. Not wanting to know how to take a hexdump of a file, or number the lines of a file in hex or anything like that. I merely want to use the bash shell in combination with really whatever has to be used to generate a hexidecimal number sequence of 00 to FF.
If you can help please do so. Thanks for the help by the way. I appreciate it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I am very new to awk and would be grateful for your help.
I need to convert a file with details like this,
Wregister( 45676, 0)
Wregister( 55550, 1)
Wregister( 44000, 0)
FlipFlop( 2342, 2)
.
.
to look like this
Wregister(626C, 0)
Wregister(D8FE, 1)
Wregister(ABE0, 0)... (7 Replies)
Discussion started by: Linda_H
7 Replies
2. Programming
Hi All,
My main intension of is to convert the Hexstring stored in a char* into hex and then prefixing it with "0x" and suffix it with ','
This has to be done for all the hexstring char* is NULL.
Store the result prefixed with "0x" and suffixed with ',' in another char* and pass it to... (1 Reply)
Discussion started by: rvan
1 Replies
3. Programming
Hi,
Is there really a difference between these two, std::hex and ios::hex??
I stumbled upon reading a line, "std::ios::hex is a bitmask (8 on gcc) and works with setf(). std::hex is the operator". Is this true?
Thanks (0 Replies)
Discussion started by: royalibrahim
0 Replies
4. Shell Programming and Scripting
Is it possible by using awk to remove leading zeros for a hex number?
ex:
0000000011179E0A -> 11179E0A
Thank you! (4 Replies)
Discussion started by: carloszhang
4 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I have one input file seperated with Hex decimal B1 value.
And i want to process this file. And iam creating an awk script to process this file. How can I specify the Field seperator as HEX B1 in my awk.
Please help.
Thanks in advance.:) (2 Replies)
Discussion started by: psk_kumar
2 Replies
6. Shell Programming and Scripting
Hi ,
How do i found out all the number in a range ( HEX)
for example
Input is
15CF:15D2
Output needed
15CF
15D0
15D1
15D2
Thanks (2 Replies)
Discussion started by: greycells
2 Replies
7. Shell Programming and Scripting
I have a binary (hex) file I need to parse to get some data which are encoded this way:
.* b4 . . . 01 12 .* af .* 83 L1 x1 x2 xL 84 L2 y1 y2 yL
By another words there is a stream of hexadecimal bytes (in my example separated by space for better readability). I need to get value stored in... (3 Replies)
Discussion started by: sameucho
3 Replies
8. Shell Programming and Scripting
$ awk 'BEGIN{ pat111=0x1000000002E3E02; snBegin=0x1000000002E3E01; if (pat111<=snBegin) printf "a\n"}'
a
Result is not correct.
Looks like the number is too big.
Any idea?
Thx!
Please use code tags <- click the link! (2 Replies)
Discussion started by: carloszhang
2 Replies
9. HP-UX
Hi guys,
First off, i'm a complete noob to UNIX and LINUX so apologies if I don't understand the basics!
I have a file which contains a hex value of '0D' at the end of each line when I look at it in a hex viewer.
I need to change it so it contains a hex value of '0D0A0A'
I thought... (10 Replies)
Discussion started by: AndyBSG
10 Replies
10. Shell Programming and Scripting
Hi to all,
May someone help me with the following.
The awk script below is part of a bigger awk script, and this part attempts to print an Ip address that is in hex format in decimal format. I'm trying with following code but
I'm getting 0.0.0.0 and the correct answer is 192.168.140.100
... (9 Replies)
Discussion started by: Ophiuchus
9 Replies
LEARN ABOUT DEBIAN
unibmp2hex
UNIBMP2HEX(1) General Commands Manual UNIBMP2HEX(1)
NAME
unibmp2hex - Bitmap graphics file to GNU Unifont .hex file converter
SYNOPSIS
unibmp2hex [-phexpage] [-iinput_file] [-ooutput_file] [-w]
DESCRIPTION
unibmp2hex reads a bitmap produced by unihex2bmp before or after editing, and converts it back into a Unifont .hex format file. The graph-
ics file contains a block of 256 Unicode code points arranged in a 16 by 16 grid. Each code point appears in a 32 by 32 pixel grid. Char-
acters are either 16 rows by 8 columns, or 16 rows by 16 columns.
OPTIONS
-ppagenum Specify that the code points will be assigned to the 256 block space pagenum in the .hex file. If not specified, unibmp2hex
will determine the appropriate block by reading the row and column headers. Note that "page" is not a standard Unicode term.
It refers to an output bitmap graphics page of 16 by 16 code points. If pagenum is greater than FF, the block resides above
the Unicode Basic Multilingual Plane. In that event, the .hex file will contain eight digit hexadecimal code points rather than
the Unifont standard of four hexadecimal code points.
-i Specify the input file. The default is stdin.
-o Specify the output file. The default is stdout.
-w Force all output .hex glyphs to be 16 pixels wide rather than dual width (8 or 16 pixels).
Sample usage:
unibmp2hex -imy_input_file.bmp -omy_output_file.hex
FILES
*.bmp or *.wbmp graphics files
SEE ALSO
bdfimplode(1), hex2bdf(1), hex2bdf-split(1), hex2sfd(1), hexbraille(1), hexdraw(1), hexmerge(1), johab2ucs2(1), unicoverage(1), unidup(1),
unihex2bmp(1), unipagecount(1), uniunmask(1)
AUTHOR
unibmp2hex was written by Paul Hardy.
LICENSE
unibmp2hex is Copyright (C) 2007, 2008 Paul Hardy, and is released under version 2 of the GNU General Public License, or (at your option) a
later version.
BUGS
No known real bugs exist, except that this software does not perform extensive error checking on its input files. If they're not in the
format of the original bitmapped output from unihex2bmp, all bets are off.
If the output file is for a "page" containing space code points and the bitmap file squares for those code points are not empty, unibmp2hex
preserve the graphics as they are drawn. They will be removed later using uniunmask, with spaces of the appropriate width from a substi-
tutes.hex file.
2007 Dec 31 UNIBMP2HEX(1)