Hello, I have a 2 column file with an ID column and a column with some string.
I would like to count the amount of times an ID repeats in the "ID" column and record it in a new column. Similarly, I would like to count the amount of times the substring "dog" appears for the lines with the same "ID" and record it in a new column. The output should look like this:
any ideas?
Last edited by Scrutinizer; 02-22-2014 at 03:36 PM..
Reason: code tags, not quote tags
hai
the point I want one server and additional backup server just like winnt pdc , bdc concept . anybody know any solutions for this. the thing is i don't have that much amount to spend for additional hardwares. Is any software or anything ?????
rgds
sun (5 Replies)
Hi,
I have this scenario; where there are two classes:- apple and orange.
1,2,3,4,5,6,apple
1,1,0,4,2,3,apple
1,3,3,3,3,4,apple
1,1,1,1,1,1,orange
1,2,3,1,1,1,orange
Basically for apple, i have 3 entries in the file, and for orange, I have 2 entries. Im trying to edit the file and find... (5 Replies)
Hi Folks,
We have 6 processors in our sun server. I do see that CPU usage by one of the processor is always more than 70-80% and for remaining 5 processors, its only 20%. Is there a way to delegate the excess CPU load on one of the processors in server to other processors in same server? Is... (3 Replies)
I have a dir as /library/utility/apache-tomcat/tbase-6001/repositories which has many huge directories and files. I am planning to replicate it to another folder
/library/utility/apache-tomcat/tbase2008-6001/repositories
Normal copy command is taking a hell lot of time and getting hung in... (1 Reply)
Hi,
I am using putty client to connect to my remote Linux server box, and I am connecting through ssh. That system runs bash shell. So, if I use multiple putty terminal, how can I replicate those commands that I ran in other terminals to be available/shared in the current terminal window (i.e)... (1 Reply)
We usually use the following awk code to delete of find out the replicate record.
awk -F, '{a++} END {for (i in a) if (a>=2) print i a}' file
My question is how can I print the whole record. The following code doesn't work.
awk -F, '{a++} END {for (i in a) if (a>=2) print $0}' file
... (8 Replies)
Dear all,
I need a little help. I am working on a frequency driven database in which the structure is as under:
headword=gloss<space>Frequency
The data which I am working with has dupes i.e. the Headword is repeated more than once with a different gloss variant on the right hand side and... (8 Replies)
Hi,
I have to install 5 servers with same OS level and same packs,
i wonder if there is an way to install 1 and then copy or clone the instalattion to the other 4?
any suggetions?
Rgs, (1 Reply)
Hello to all guys,
Maybe some expert could help me.
I have a working ruby script shown below that reads a big binary file (more than 2GB). The chunks of data I want to analyze
is separated by the sequence FF47 withing the binary. So, in the ruby script is defined as "line separator" =... (10 Replies)