12-03-2010
Can we input Starting HEX number = 036A, Number of groups = 2, Members in a Group= 4.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello
have one file
N
H
H
K
L
K
K
H
K
N
so output shud be like
N = 2
H = 3
K = 4
L =1 (3 Replies)
Discussion started by: cdfd123
3 Replies
2. Shell Programming and Scripting
Hi I want to incremental add hex decimal number to a particula field in file
eg: addr =123 dept1=0
addr = 345 dept2 =1
addr2 = 124 dept3 =2
.
.
.
.
.
.
addr3 =567 dept15 =f
Is there any command which add... (8 Replies)
Discussion started by: diddi_linux
8 Replies
3. 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
4. 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
5. 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
6. 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
7. 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
8. 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
9. Shell Programming and Scripting
awk 'FNR==NR {a; next} $NF in a' genes.txt refseq_exons.txt > output.txt
I can not figure out how to group the same name in $4 together.
Basically, all the SKI together in separate rows and all the TGFB2. Thank you :).
chr1 2160133 2161174 SKI
chr1 218518675 218520389 TGFB2... (1 Reply)
Discussion started by: cmccabe
1 Replies
10. Shell Programming and Scripting
Hi,
sry for poor english
I have a group of hex number as : 4D40:4D42
I want so split this group in a list as :
4D40,4D41,4D42
i don't know how i can do this in ksh
Thanks (5 Replies)
Discussion started by: jocazh
5 Replies
LEARN ABOUT DEBIAN
nngrep
NNGREP(1) General Commands Manual NNGREP(1)
NAME
nngrep - grep for news group names (nn)
SYNOPSIS
nngrep [ -ainprsu ] [ -l ] [ pattern ]
DESCRIPTION
nngrep can print various selections of the available news groups.
Without options, nngrep will list all currently subscribed newsgroups whose name matches any of the specified patterns. If no pattern is
specified, all subscribed groups will be listed.
The selection of news groups against which the patterns are matches, and subsequently printed by nngrep can be limited or expanded using
the following command line options and arguments:
-a Use both subscribed and unsubscribed groups. Overrides the -u option.
-i Use only ignored groups, i.e. which are not in the presentation sequence.
-n Use only new groups. Notice that nn considers a group to be new until you have read at least one article in the group, or you have
unsubscribed to the group. This means that even reasonable active news groups may remain "new" for quite some time if it only con-
tains articles which are cross-posted to other groups which occur earlier in your presentation sequence.
-p Use only groups with unread (pending) articles.
-r Use only read groups, i.e. without unread articles.
-s Use only groups which are in the presentation sequence.
-u Use only unsubscribed groups.
These options can be combined if they don't logically exclude each other.
For example, to get the names of all "source" groups, you can use the command
nngrep source
You can use this to read a specific subset of news groups with nn; for example
nn `nngrep -sp source`
LONG LISTING
A long listing of the matched groups can be requested with the -l option. It will include the following information:
SUBSCR Specifies whether the group is subscribed or not (yes/no).
NEW Specifies whether the group is new or not (yes/no).
UNREAD Shows the number of unread articles in the group (if any).
SEQUENCE Shows the group's index in the presentation sequence.
GROUP The name of the group.
FILES
~/.newsrc The record of read articles
~/.nn/init The presentation sequence
SEE ALSO
nn(1), nncheck(1), nngoback(1), nngrab(1), nnpost(1), nntidy(1)
nnadmin(1M), nnusage(1M), nnmaster(8)
AUTHOR
Kim F. Storm, Texas Instruments A/S, Denmark
E-mail: storm@texas.dk
4th Berkeley Distribution Release 6.6 NNGREP(1)