Sponsored Content
Top Forums Programming generating pair of numbers in special order Post 302545684 by pludi on Tuesday 9th of August 2011 07:56:41 AM
Old 08-09-2011
A sequence like this has me wondering if this might be homework...
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

generating random numbers with hamming distance 4

Hi I want to genrate 10 random 32 bit binary numbers with hamming distance 4 and 8. 11010110010101010101010101010101 11010110010101010100010101010010 if we look carefully at these two binary numbers they differ at 4 places hence hamming distance 4. Now I want to genrate these numbers... (2 Replies)
Discussion started by: hack_tom
2 Replies

2. Shell Programming and Scripting

generating line numbers

hello All Do anybody know how to generat number line that is puting the number of lines at the begining of a new line, with d bracket by the side say 1) 2) 3) any help would be nice (7 Replies)
Discussion started by: sam4now
7 Replies

3. Shell Programming and Scripting

Ascending & Descending order numbers

Dear All, I have below attached file in which i have many nos, i want the last ascending order nos. The brief description is given below. File 315 381 432 315 381 432 315 381 432 315 381 432 315 381 432 (6 Replies)
Discussion started by: pravani1
6 Replies

4. Shell Programming and Scripting

Generating random numbers

Hi, I am having trouble with generating random numbers. can this be done with awk? So I have a file that looks like this: 23 30 24 40 26 34 So column1 is start and column2 is end. I want to generate 3 random #'s between start and stop: So the output will look like this: ... (9 Replies)
Discussion started by: phil_heath
9 Replies

5. Shell Programming and Scripting

Generating Gaussian Distributed Random Numbers

I want to generate an awk function that generated a Gaussian distributed set of random numbers. I need to implement the thing below in awk. Rnd is just a uniform random number between 0 and 1 function rgaussian(r1, r2) { Do v1 = 2 * Rnd - 1 v2 = 2 * Rnd - 1 ... (0 Replies)
Discussion started by: kristinu
0 Replies

6. Shell Programming and Scripting

picking the numbers missing which is supposed to be a numercal/counting order

Hi, I have a tab delimited file with 2 columns. In the first column the numbers are sorted from smallest to largest. It is supposed to be in the numerical order but in between some numbers are missing. Is there a way I could easily get those numbers that are missing and output it a file using... (11 Replies)
Discussion started by: Lucky Ali
11 Replies

7. UNIX for Dummies Questions & Answers

Appending a column of numbers in ascending order to a text file

I have a text file where I want to append a column of numbers in ascending orders. Input: 57 abc 25 def 32 ghi 54 jkl Output:57 abc 57 abc 1 25 def 2 32 ghi 3 54 jkl 4 How do I go about doing that? Thanks! (11 Replies)
Discussion started by: evelibertine
11 Replies

8. Shell Programming and Scripting

How To Arrange Record In A Special Order?

Hi All, I have following data to be arranged based on columnd 6: 0098442947 0098222107 0098442134 0098200179 0098441067 0098442744 0098443106 0098442746 0098321411 0098443111 0098456611 0098444570 0098456600 0098385750 0098200288 (3 Replies)
Discussion started by: angshuman
3 Replies

9. Shell Programming and Scripting

Nawk special numbers

Just stumbled over a terrible feature in nawk derivates. I did not find it documented in man pages. HP-UX 11.31: echo info | awk '{print $1+0}' inf echo nano | awk '{print $1+0}' nan echo info | awk '{print $1-$1}' -nanSolaris 10: echo info | nawk '{print $1+0}' Inf echo nano | nawk... (5 Replies)
Discussion started by: MadeInGermany
5 Replies
RCSFILE(5L)															       RCSFILE(5L)

NAME
rcsfile - format of RCS file DESCRIPTION
An RCS file is an ASCII file. Its contents are described by the grammar below. The text is free format, i.e., spaces, tabs and new lines have no significance except in strings. Strings are enclosed by `@'. If a string contains a `@', it must be doubled. The meta syntax uses the following conventions: `|' (bar) separates alternatives; `{' and `}' enclose optional phrases; `{' and `}*' enclose phrases that may be repeated zero or more times; `{' and '}+' enclose phrases that must appear at least once and may be repeated; `<' and `>' enclose nonterminals. <rcstext> ::= <admin> {<delta>}* <desc> {<deltatext>}* <admin> ::= head {<num>}; branch {<num>}; access {<id>}*; symbols {<id> : <num>}*; locks {<id> : <num>}*; comment {<string>}; <delta> ::= <num> date <num>; author <id>; state {<id>}; branches {<num>}*; next {<num>}; <desc> ::= desc <string> <deltatext> ::= <num> log <string> text <string> <num> ::= {<digit>{.}}+ <digit> ::= 0 | 1 | ... | 9 <id> ::= <letter>{<idchar>}* <letter> ::= A | B | ... | Z | a | b | ... | z <idchar> ::= Any printing ASCII character except space, tab, carriage return, new line, and <special>. <special> ::= ; | : | , | @ <string> ::= @{any ASCII character, with `@' doubled}*@ Identifiers are case sensitive. Keywords are in lower case only. The sets of keywords and identifiers may overlap. The <delta> nodes form a tree. All nodes whose numbers consist of a single pair (e.g., 2.3, 2.1, 1.3, etc.) are on the "trunk", and are linked through the next field in order of decreasing numbers. The head field in the <admin> node points to the head of that sequence (i.e., contains the highest pair). The branch node in the admin node indicates the default branch (or revision) for most RCS operations. If empty, the default branch is the highest branch on the trunk. All <delta> nodes whose numbers consist of 2n fields (n>=2) (e.g., 3.1.1.1, 2.1.2.2, etc.) are linked as follows. All nodes whose first(2n)-1 number fields are identical are linked through the next field in order of increasing numbers. For each such sequence, the <delta> node whose number is identical to the first 2(n-1) number fields of the deltas on that sequence is called the branchpoint. The branches field of a node contains a list of the numbers of the first nodes of all sequences for which it is a branchpoint. This list is ordered in increasing numbers. Example: Head | | v --------- / / | | / / / / | 2.1 | / / / / | | / / /1.2.1.3 /1.3.1.1 | | /1.2.2.2 /1.2.2.1.1.1 --------- --------- --------- --------- ------------- ^ ^ | ^ ^ | | | | | | | v | | / | --------- / | / | 1.3 / / | / --------- / / ----------- /1.2.1.1 / /1.2.2.1 --------- / --------- ^ | ^ | | | | v | | --------- | | 1.2 / | ---------------------- /--------- / / | | v --------- 1.1 / / / / Fig. 1: A revision tree IDENTIFICATION
Author: Walter F. Tichy, Purdue University, West Lafayette, IN, 47907. Revision Number: 1.1 ; Release Date: 87/03/11 . Copyright (C) 1982 by Walter F. Tichy. SEE ALSO
ci(1L), co(1L), ident(1L), rcs(1L), rcsdiff(1L), rcsmerge(1L), rlog(1L), Walter F. Tichy, "Design, Implementation, and Evaluation of a Revision Control System," in Proceedings of the 6th International Conference on Software Engineering, IEEE, Tokyo, Sept. 1982. Purdue University RCSFILE(5L)
All times are GMT -4. The time now is 12:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy