10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Unix gurus,
I have sample data organised like this and containing 6 columns (with headers):
label c2 c3 c4 c5 c6
where c2 to c6 are numeric values in columns c2 to 6.
I am trying to create a simple output in a new file containing 3 columns:
label max(c2 c3) max(c4 c5 c6)
... (4 Replies)
Discussion started by: ksennin
4 Replies
2. Solaris
Hi All,
Currently experiencing more-so a visual issue when typing psrinfo, mpstat commands, as the virtual processors start from 8-39, as below:
# psrinfo -pv
The physical processor has 32 virtual processors (8-39)
UltraSPARC-T2 (chipid 0, clock 1165 MHz)
Can't seem to find anything to... (0 Replies)
Discussion started by: alx_mck
0 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. Shell Programming and Scripting
Hi,
I have a file like this
a 1 2
a 5 8
a 66 100
b 1 2
b 2 3
b 111 143
d 4 5
d 4 6
e 77 727
g 7 8
How can I extract the maximum of col3 respective to col1. I meant, the output will be
a 100
b 143
d 6 (1 Reply)
Discussion started by: jacobs.smith
1 Replies
5. UNIX for Dummies Questions & Answers
I have a big file with 127 columns and 869 rows. What I am trying to do is to get the absolute value of all numbers in the file, and then get the maximum of each column.
If this was for one column it wouldn't be a problem, I would use:
awk '{ print ($1 >= 0) ? $1 : 0 - $1}' file > out1... (3 Replies)
Discussion started by: cosmologist
3 Replies
6. Shell Programming and Scripting
Hi,
Is there a restriction in the number of inodes a particular directory can have in Solaris.
If so how can we determine that.
Regards (3 Replies)
Discussion started by: @bhi
3 Replies
7. UNIX for Dummies Questions & Answers
We have purchased four intels xeon processors
Intel® Xeon® Processor E7530 (12M Cache, 1.86 GHz, 5.86 GT/s Intel® QPI) with SPEC Code(s) SLBRJ
As per the specification each cpu has 6 cores therefore we have 24 cores (considering 4 cpus).
Now how would i calculate the number of vcpus that can... (1 Reply)
Discussion started by: pinga123
1 Replies
8. Shell Programming and Scripting
Hello,
I am trying to get a script to work which will find the maximum value of the fourth column and assign that value to all rows where the first three columns match.
For example:
1111 2222 AAAA 0.3
3333 4444 BBBB 0.7
1111 2222 AAAA 0.9
1111 2222 AAAA 0.5
3333 4444 BBBB 0.4
should... (8 Replies)
Discussion started by: jaysean
8 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
- block size of 512KB & every address requires 4 bits
- The inode structure contains 10 direct pointers, 1 single
indirect, 1 double indirect & 1 triple indirect pointer
What could be the possible maximum file size for this
system
Any guess? I am unable to understand the question... (0 Replies)
Discussion started by: preethgideon
0 Replies
10. UNIX for Dummies Questions & Answers
Does Solaris impose limits on :
- the maximum number of files a directory can have,
- total file size in a directory
If there is such limits, how can I can check for each?
Thanks...:confused: (1 Reply)
Discussion started by: deaniyoer
1 Replies