10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk.
Any ideas?
Thanks! (5 Replies)
Discussion started by: black_fender
5 Replies
2. UNIX for Dummies Questions & Answers
Hello. I have 9060 files labelled File1 to File9060. They are in numerical order. When I grep a file eg. File90 it will show me all files that contain the pattern "File90", eg File901 or File9001. I can only get specific files for File1000 or higher. How can I resolve this problem? Is there a... (5 Replies)
Discussion started by: godzilla07
5 Replies
3. Shell Programming and Scripting
i want to basically get the lowest numbers from a list ... for example my input file is ....
1
2
3
6
7
8
9
10
11
13
Now i want to create a script or a one liner which i can use like this ...
for example ..../getlowest 3 --> this gives me the next 3 lowest numbers which... (6 Replies)
Discussion started by: greycells
6 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to write a script that does something like this:
I have a file, in which in every line, there is a string of words, and followed by some space, a number.
Now, I want to identify the line, which has the largest startFace number (say m=8118), take that number and add it to the... (2 Replies)
Discussion started by: super_commando
2 Replies
5. Shell Programming and Scripting
Hello All,
I am having problem to find what is the smallest number from 90% of highest numbers from all numbers in file. I am having file with thousands of lines and hundreds of columns.
I am familiar mainly with bash but I am open to whatever suggestion witch will lead to the solutions.
If I... (11 Replies)
Discussion started by: Apfik
11 Replies
6. Shell Programming and Scripting
I have a list of strings stored in $Lst
Example
set Lst = "John Fred Kate Paul"
I want to return 4 in this case. (1 Reply)
Discussion started by: kristinu
1 Replies
7. Shell Programming and Scripting
I have two files
The first file is in following format
5 937 8
1860 5 1
683 2 1
129 2 2
5 938 8
1122 5 1
20 520 4
1860 1851 1
5 939 8
1122 1124 1
20 521 4
5883 14 6
1860 1852 1
683 4 2 (5 Replies)
Discussion started by: stuggler
5 Replies
8. Shell Programming and Scripting
Hi Guys,
I have a file with numbers in sequence.
The sequence have been broken somewhere.. I need to find out at which number the sequence has been broken...
For an example, consider this sequence, it needs to give me output as 4 (as 5 is missing) and 6(as 7 is missing)
Thanks for... (3 Replies)
Discussion started by: mac4rfree
3 Replies
9. Shell Programming and Scripting
cat *.out |grep "<some text>" | awk '{print $6}'
For ex,This will reutrn me
11111
22222
is it possible to add these two numbers in the above given command itself?I can write this to a file and find the sum.
But I prefer to this calculation in the above given line itself.
Any... (3 Replies)
Discussion started by: prasperl
3 Replies
10. IP Networking
hither!
whatz the command to find which process is using a specific port number? for example, port 8082? (3 Replies)
Discussion started by: darkcastle
3 Replies