10-02-2010
Hex numbering sequence
Friends, I am looking for a small script which generates HEX sequence. Input to the script is starting hex number - Group ID and number of members a group should have and total groups.
e.g: Here we are generating 2 groups with 4 Members each starting with hex 036A.
Output:
Group ID 036A, members below;
members 036B:036D;
Group ID 036E, members below;
members 036F:0371;
Help is heartily appreciated
---------- Post updated at 06:54 AM ---------- Previous update was at 06:51 AM ----------
Output in following format will also do:
Group ID 036A, members below;
member 036B
member 036C
member 036D
Group ID 036E, members below;
member 036F
member 0370
member 0371
Please help...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Just a shot question...
how to make 1,2,3,...999
into the form of
001,002,003....999
(3 digits)
Thanks.... (9 Replies)
Discussion started by: biglemon
9 Replies
2. Shell Programming and Scripting
I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
Discussion started by: merlin
3 Replies
3. UNIX for Advanced & Expert Users
hello i'm trying to figure out how to number a blank line. For instance this :
sed '/./=' file | sed '/./N; s/\n/ /'
gives me
1 aaaa
2 bbbbbb
4 cccccc
5 ffkkkfff
6 ffsdfdfs
I would like something like this:
1 aaaaa
2
3 bbbbbb
4
5 cccccc
And so... (6 Replies)
Discussion started by: wisher115
6 Replies
4. Shell Programming and Scripting
Hi,
I have several folders full of image sequences from an animation.
The image frames are named Frame0001.png to Frame0900.png, somewhere along the way the images have been named in reverse order.
Is there a script that read the contents of a folder and renumber the files Frame0001.png -... (1 Reply)
Discussion started by: BlightyDevil
1 Replies
5. 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
6. 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
7. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
8. Shell Programming and Scripting
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
Discussion started by: scribling
7 Replies
9. Shell Programming and Scripting
Need some help doing this ... with awk maybe
Input
0DF6
0DF7
0DF8
0DF9
0DFA
0DFB
0DFC
0DFD
0DFF
0E00
0E01
0E02
0E03
0E04
0E05
0E06 (11 Replies)
Discussion started by: greycells
11 Replies
10. Shell Programming and Scripting
Assume I have a file \usr\home\\somedir\myfile123.txt
and I want to replace all occurencies of the two (concatenated) hex values x'AD' x'A0' bytwo other (concatenated) hex values x'20' x'6E'
How can I achieve this with the gnu sed tool?
Additional question: Is there a way to let sed show... (1 Reply)
Discussion started by: pstein
1 Replies
LEARN ABOUT DEBIAN
eep24c
EEP24C(1) General Commands Manual EEP24C(1)
NAME
eep24c - read and write 24Cxxx eeprom devices
SYNOPSIS
eep24c -d device [ -r[n] filename | -w[n] filename | -k[n] filename | -f[n] xx ]
DESCRIPTION
The command eep24c can be used to read and write 24Cxxx eeprom devices.
OPTIONS
The following options are available:
-d device
Specify the device type. To see a list of the supported devices, try -d help
-r filename
Read from eeprom and save to a file.
-w filename
Read from a file and write to eeprom. The addresses not specified in the input file will be filled with 00.
-k filename
Read from a file and write to eeprom. The addresses not specified in the input file will be kept with its previous values. (this
mode is twice slower. It reads whole memory to know previous values, then write whole memory)
-f XX Fills the whole eeprom with XX (XX is an hexadecimal value)
n Can be used to multiply clock time. If you have a long cable, you may use this option. Example: -r5 will read eeprom 5 times slower
(pulse width will be standard value multiplied by 5). Valid range for n is from 1 to 50. Default value is 1.
USAGE EXAMPLES
eep24c -d 24c04 -r file.hex
read eeprom, write to file.hex
eep24c -d 24c04 -r3 file.hex
read eeprom, write to file.hex, 3 times slower.
eep24c -d 24c04 -w file.hex
read file.hex and write to eeprom. All the bytes not found in file.hex will be written as 00.
eep24c -d 24c04 -k file.hex
read file.hex and write to eeprom. All the bytes not found in file.hex will remain unchanged.
eep24c -d 24c04 -f 7A
fill eeprom with 7A (hexadecimal).
INPUT AND OUTPUT FORMAT
Input and output file format is Intel Hexadecimal Object File Format
You can find this specification at
ftp://download.intel.com/support/processors/
i960/devtools/INTELHEX.PDF
Record types 00 and 01 are implemented in this version. In input lines, LF and CR+LF are accepted as newline markers. Output files are
generated with LF as a newline marker.
DEVICE SPECIFIC
If you are using Microchip 24*515, you must tie its pin A2 to VCC (needs a hardware modification, see device datasheet).
SEE ALSO
ihex2txt(1), txt2ihex(1).
AUTHOR
This manual page was written by Pedro Zorzenon Neto <pzn@vztech.com.br>.
2002-11-14 EEP24C(1)