10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a file has thousands of rows and each row has a number and the number can be positive or negative. I want to do the cumulative sum from the first row. How can I find out the maximum cumulative value when I do the sum work row by row. Here is the example:
4
-3
2
-3
-1
1In this case, the... (5 Replies)
Discussion started by: yuejian
5 Replies
2. Shell Programming and Scripting
Let say I have this table
A B 0.30 C D 0.60 E F 0.80 G H 0.11
I J 0.10 K L 0.23 M N 0.50 O P 0.01
I need to find the maximum value in each row and output the highest value plus the information two columns back.
For example: the output should look like this
E F 0.80
M N 0.50
Thanks in... (2 Replies)
Discussion started by: seiksoon
2 Replies
3. Shell Programming and Scripting
0.01 0.6 0.39
0.4 0.3 0.3
1 0 0
0 0 1
I would like to print 2 if the maximum of a row is the first column
I would like to print 1 if the maximum of a row is the second colum
print 0 if it is the third.
so in this case,
0.6 is the max of the first row so i would want to print 1... (5 Replies)
Discussion started by: johnkim0806
5 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am trying to complete a script which will allow me to find:
a) reads a value from the keyboard. (ask the... (4 Replies)
Discussion started by: dstewie
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
A log file which is growing at high speed, don't know the name of it. How to find the respective file?
Many thanks. (2 Replies)
Discussion started by: venkatesht
2 Replies
6. Shell Programming and Scripting
Hi,
I need to find out the gigabytes/hour growth in filesystem.:confused:
i am using df command for finding the filesystem size and free space every hour. But how can i find the increase in size per hour? :rolleyes:
Do i have to store the last hour entries in a file and comapre with... (2 Replies)
Discussion started by: kichu
2 Replies
7. Solaris
Hi gurus
Im a newbie in solaris..I need to extend file system space in solaris 10 which is using SVM..I have a file system /pin02 which is 93% full n needs to be extended..only 3.6 gb avail space left..the file system is not mirrored...normal ufs file system only..can u please tel me t... (6 Replies)
Discussion started by: madanmeer
6 Replies
8. HP-UX
how to redirect the growing contents of log file to another file in unix (2 Replies)
Discussion started by: megh
2 Replies
9. UNIX for Dummies Questions & Answers
my /etc/.osm file is growing rapidly and logging large amounts of activity. Can anyone tell me what this file is for and what types of information is logged in this file.
Thanks in advance for your help!! (1 Reply)
Discussion started by: golfs4us
1 Replies
10. UNIX for Dummies Questions & Answers
Is there a command in HP Unix which can be used inside a K shell to find out the maximum number of processes (PIDs) a pc can generate?
Any help will be greatly appreciated.
Steve (8 Replies)
Discussion started by: stevefox
8 Replies