Sponsored Content
Top Forums Shell Programming and Scripting Resume and count repeated values Post 302769519 by jiam912 on Tuesday 12th of February 2013 02:02:15 PM
Old 02-12-2013
Resume and count repeated values

Gents,

Please can you help me.

Input file

Code:
1050    , 9    ,9888    
1050    ,10    ,9888    
1050    ,11    ,9888    
1050    ,13    ,9888    
1050    ,15    ,9888    
1051    , 9    ,9889    
1051    ,12    ,9889    
1051    ,15    ,9889    
1051    ,18   ,9889    
1052    , 9    ,9890    
1052    ,10    ,9890    
1052    ,11    ,9890    
1052    ,15    ,9890    
1053    , 9    ,9891    
1053    ,10    ,9891    
1053    ,14    ,9891    
1054    , 9    ,9892    
1054    ,10    ,9892    
1054    ,11    ,9892

Kindly help me to get the minimun and maximun value in column 2, for each value in column 1. Then to write in a new column 4 the total of values counted.

My desired output shoul be like this:

Code:
1050    9  15    9888   5     
1051    9  18    9889   4     
1052    9  15    9890   4     
1053    9  14    9891   4     
1054    9  11    9891   3

Thanks in advance Smilie
 

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Are companies viewing my resume? How do I track my resume visits?

Hi everybody, I am wondering if there is any tool or website out there which can track who is viewing my resume. It is very frustrating when you send your CV or Cover Letter and you receive no feedback from the company, you don't even know if they have checked it out. Thanks for your help (1 Reply)
Discussion started by: gearyipswich
1 Replies

2. Programming

Count the number of repeated characters in a given string

i have a string "dfasdfasdfadf" i want to count the number of times each character is repeated.. For instance, d is repeated 4 times, f is repeated 4 times.. can u give a program in c (1 Reply)
Discussion started by: pgmfourms
1 Replies

3. Shell Programming and Scripting

To Delete the repeated occurances and print in same line by appending values

Hi All, I am trying to work on below text a b c 1 a b c 2 a b c 3 x y z 6 x y z 44 a b c 89 Need to delete the occurances and get in single line like below: a b c 1 2 3 89 x y z 6 44 89 Please help me i am new into unix scripting ..... ---------- Post updated at 03:00... (8 Replies)
Discussion started by: shaliniyadav
8 Replies

4. Shell Programming and Scripting

comparing the values of repeated keys in multiple columns

Hi Guyz The 1st column of the input file has repeated keys like x,y and z. The ist task is if the 1st column has unique key (say x) and then need to consider 4th column, if it is + symbol then subtract 2nd column value with 3rd column value (we will get 2(10-8)) or if it is - symbol subtract 3rd... (3 Replies)
Discussion started by: repinementer
3 Replies

5. Hardware

Cannot resume from suspend with new motherboardktop, does not resume properly

I would like to get pm-suspend (or any other suspend method) working for a small new desktop computer. It is based on a Zotac GF-8200 ITX motherboard and an AMD Athlon II X@ 240 CPU using ArchLinux x86_64. The pm-suspend script works, apparently putting the machine into suspend correctly... (0 Replies)
Discussion started by: lagagnon
0 Replies

6. Shell Programming and Scripting

Help in counting the no of repeated words with count in a file

Hi Pls help in solving my doubt.Iam having file like below file1.txt priya jenny jenny priya raj radhika priya bharti bharti Output required: I need a output like count of repeated words with name for ex: priya 3 jenny 2 (4 Replies)
Discussion started by: bha148
4 Replies

7. UNIX for Dummies Questions & Answers

Extracting column if above certain values and repeated over a number of times continuously

Hi I am new to the forum and would like to ask: i have a file in form with thousands of column id.1 A01 A01 A68 A68 id.2 A5 A5 A3 A3 1001 0 0 0.136 0.136 1002 0 0 0.262 0.183 1003 0 0 0.662 0.662 1004 0 0 ... (9 Replies)
Discussion started by: newbeeuk
9 Replies

8. Shell Programming and Scripting

Finding most repeated entry in a column and giving the count

Please can you help in providing the most repeated entry in the 2nd column and give its count Here is an input file 1, This , is a forum 2, This , is a forum 1, There , is a forum 2, This , is not right Here the most repeated entry is "This" and count is 3 So output... (4 Replies)
Discussion started by: necro98
4 Replies

9. Shell Programming and Scripting

Put repeated values into a table

Hi all, I have blocks of records like the following, each block ends in = in a new line, I want tabularize the entire output. The pattern is the same in every block although not all types are there in every block. For example gine3 is absent in the second block but present first and third. ... (7 Replies)
Discussion started by: ritakadm
7 Replies

10. Shell Programming and Scripting

Adding the values of repeated ids

File1 consist two columns, first some weired ids and second the numbers t|v203.1@t|k88711.1 0.1 t|v190.1@t|k90369.1 0.01 t|v203.1@t|k88711.1 0.5 t|v322.1@t|k88711.1 0.2 t|v207.1@t|k90369.1 0.11 t|v326.1@t|k85939.1 0.5 t|v207.1@t|k90369.1 0.7 t|v207.1@t|k90369.1 0.3 t|v326.1@t|k89421.1 0.33... (3 Replies)
Discussion started by: ashmit99
3 Replies
rpc_xdr(3)						     Library Functions Manual							rpc_xdr(3)

NAME
rpc_xdr, xdr_accepted_reply, xdr_authunix_parms, xdr_callhdr, xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg - XDR library routines for ONC remote procedure calls SYNOPSIS
#include <rpc/xdr.h> xdr_accepted_reply( XDR *xdrs, struct accepted_reply *ar); xdr_authunix_parms( XDR *xdrs, struct authunix_parms *aupp); void xdr_callhdr( XDR *xdrs, struct rpc_msg *chdr); xdr_callmsg( XDR *xdrs, struct rpc_msg *cmsg); xdr_opaque_auth( XDR *xdrs, struct opaque_auth *ap); xdr_rejected_reply( XDR *xdrs, struct rejected_reply *rr); xdr_replymsg( XDR *xdrs, struct rpc_msg *rmsg); DESCRIPTION
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the server. Upon receipt of the packet, the server calls a dispatch routine to perform the requested service, and then sends back a reply. Finally, the procedure call returns to the client. Unless otherwise indicated, the routines described in this reference page are thread safe (that is, they can be used safely in a multi- threaded environment). Routines that are not thread safe are flagged as such. Encodes RPC reply messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. Describes UNIX credentials. This routine is useful for users who wish to generate these credentials without using the RPC authentication package. Describes RPC call header messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. Describes RPC call messages. This routine is use- ful for users who wish to generate RPC-style messages without using the RPC package. Describes RPC authentication information messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. Describes RPC reply messages. This routine is useful for users who want to generate RPC-style messages without using the RPC package. Describes RPC reply messages. This routine is useful for users who want to generate RPC-style messages without using the RPC package. RELATED INFORMATION
rpc_clnt(3), rpc_misc(3), rpc_svc(3), xdr(3) Remote Procedure Calls: Protocol Specifications - RFC 1050 delim off rpc_xdr(3)
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy