10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi.. i am running nawk scripts on solaris system to get records of file1 not in file2 and find duplicate records in a while with the following scripts -compare
nawk 'NR==FNR{a++;next;} !a {print"line"FNR $0}' file1 file2duplicate - nawk '{a++}END{for(i in a){if(a-1)print i,a}}' file1in the middle... (12 Replies)
Discussion started by: Abhiraj Singh
12 Replies
2. 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
3. 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
4. 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
5. Solaris
Hi all, I'm using to Solaris machine. When I run a simple script this messenger come out:"limit: stacksize: Can't remove limit". Any one know the way to resolve this problem without reboot the machine?
Thanks in advance. (3 Replies)
Discussion started by: Diabolist9
3 Replies
6. Solaris
Hi,
As per my knowledge, the maximum number of groups that can be allocated to a folder (in Solaris 10) is 16. But I wonder how this rule is applicable to folders which are mounted on NFS which can be accessed by 100s of groups? or is there is a restriction present? I have never handled such a... (5 Replies)
Discussion started by: poga
5 Replies
7. 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
8. Shell Programming and Scripting
hi people;
this is my two awk code:
nawk '/cell+-/{r=(NF==8) ? $4FS$5FS$6 : NF==7 ? $4FS$5 : $4 ;c=split(r,rr);for (i=1;i<=c;i++){if(rr != "111111"){printf($3" %d ""\n",(i+3))}}printf("")}' /home/gc_sw/str.txt > /home/gc_sw/predwn.txt
nawk -F'*' '{gsub(/ *$/,"")}$0=$1$($NF-2)'... (2 Replies)
Discussion started by: gc_sw
2 Replies
9. AIX
Hello All,
Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time?
Thanks,
Jenish (1 Reply)
Discussion started by: jenish_shah
1 Replies
10. Shell Programming and Scripting
i'm new to shell scripting and have a problem please help me
in the script i have a nawk block which has a variable count
nawk{
.
.
.
count=count+1
print count
}
now i want to access the value of the count variable outside the awk block,like..
s=`expr count / m`
(m is... (5 Replies)
Discussion started by: saniya
5 Replies