10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am getting an argument which specifies the range of numbers. eg: 7-15
Is there a way that i can easily (avoiding loop) print the range of number between and including the specified above.
The above example should translate to 7,8,9,10,11,12,13,14,15 (3 Replies)
Discussion started by: tostay2003
2. Shell Programming and Scripting
I have a matrix like this:
Algorithm predicted_gene start_point end_point
A x 65 85
B x 70 80
C x 75 85
D x 10 20
B y 125 130
C y 120 140
D y 200 210
Here there are four tab-separated columns. The first column is the used algorithm for prediction, and there are 4 of them A-D.... (8 Replies)
Discussion started by: flyfisherman
3. Shell Programming and Scripting
I am very new at awk and to me the task I need to get done is very very challenging... Nevertheless, after admiring how fast and elegant issues are being solved here I am sure this is my best chance.
I have a 2D data file (input file is a plain tab-delimited text file). The first... (1 Reply)
Discussion started by: stonemonkey
4. Shell Programming and Scripting
I want to know how to grep for the lines that has a number between given range(start and end).
I have tried the following sed command.
sed -n -e '/20030101011442/,/20030101035519/p'
However this requires both start and end to be part of the content being grepped. However... (4 Replies)
Discussion started by: tamil.pamaran
5. UNIX for Dummies Questions & Answers
Hi I have a data file with two columns which looks like:
18 32 (7 Replies)
Discussion started by: marhuu
6. UNIX for Dummies Questions & Answers
I have a column where there are values from 1 to 150.
I want to get the frequency of values in the following ranges:
How can I do this in a for loop?
Guss (1 Reply)
Discussion started by: Gussifinknottle
7. UNIX for Dummies Questions & Answers
I have two columns with data that look like this:
b 14 (5 Replies)
Discussion started by: Gussifinknottle
8. Shell Programming and Scripting
We have some ranges of number which belongs to particual group as below.
GroupNo StartRange EndRange
Group0125 935300 935399
Group2006 935400 935476
Group0324 935477 935549
... (6 Replies)
Discussion started by: thepurple
9. UNIX for Dummies Questions & Answers
Hi im new to unix and need to find a way to grep the top 5 numbers in a file and put them into another file. For example my file looks like this
and so on...
How can... (1 Reply)
Discussion started by: ProgChick2oo9
10. Shell Programming and Scripting
I want to grep a range of numbers in a log file. My log file looks like this:
That is a combination of yr,month,date,hours,minutes,seconds.
I want to search in the log file events that happened between a particular time.
like between 20050807070000 to 20050822070000... (1 Reply)
Discussion started by: azmathshaikh
ARITHMETIC(6) BSD Games Manual ARITHMETIC(6)
arithmetic -- quiz on simple arithmetic
arithmetic [-o +-x/] [-r range]
arithmetic asks you to solve problems in simple arithmetic. Each question must be answered correctly before going on to the next. After
every 20 problems, it prints the score so far and the time taken. You can quit at any time by typing the interrupt or end-of-file character.
The options are as follows:
-o By default, arithmetic asks questions on addition of numbers from 0 to 10, and corresponding subtraction. By supplying one or more
of the characters +-x/, you can ask for problems in addition, subtraction, multiplication, and division, respectively. If you give
one of these characters more than once, that kind of problem will be asked correspondingly more often.
-r If a range is supplied, arithmetic selects the numbers in its problems in the following way. For addition and multiplication, the
numbers to be added or multiplied are between 0 and range, inclusive. For subtraction and division, both the required result and the
number to divide by or subtract will be between 0 and range. (Of course, arithmetic will not ask you to divide by 0.) The default
range is 10.
When you get a problem wrong, arithmetic will remember the numbers involved, and will tend to select those numbers more often than others, in
problems of the same sort. Eventually it will forgive and forget.
arithmetic cannot be persuaded to tell you the right answer. You must work it out for yourself.
``What?'' if you get a question wrong. ``Right!'' if you get it right. ``Please type a number.'' if arithmetic doesn't understand what you
May 31, 1993 BSD