Sponsored Content
Top Forums Shell Programming and Scripting Need help for count using shell Post 302958697 by buzzme on Sunday 25th of October 2015 03:03:59 PM
Old 10-25-2015
Need help for count using shell

Input:

Code:
person1=1234
website=google.com
website=yahoo.com

person2=3453
website=google.com
website=mail.com

person3=4590
website=facebook.com

person4=4591
website=facebook.com
website=yahoo.com
website=google.com
website=twitter.com
website=example.com

Note: There is blank splace between each person ID

Output:

Code:
Two persons registered on 2 website
One Person registered on 1 website
One person registered on 5 website

Moderator's Comments:
Mod Comment We have sent you umpteenth warnings already about the use of code tags for code and data. Please have the courtesy to heed these warnings


---------- Post updated at 03:03 PM ---------- Previous update was at 02:39 PM ----------

can someone help me on this

Last edited by Scrutinizer; 10-25-2015 at 05:02 PM.. Reason: code tags again and again and again and again...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

select count(*) in sqlplus into variable unix shell

Need to select count(*) from table to check for zero result in unix script (2 Replies)
Discussion started by: struggle
2 Replies

2. UNIX for Dummies Questions & Answers

Perl/shell script count the lines

Hi Guys, I want to write a perl/shell script do parse the following file input file content NPA-NXX SC 2084549 45 2084552 45 2084563 2007 2084572 45 2084580 45 3278411 45 3278430 45 3278493 530 3278507 530... (3 Replies)
Discussion started by: pistachio
3 Replies

3. Shell Programming and Scripting

shell script to get the arrival count of file

Hello All, I have come across a small problem. It would be great if any of you could help me in resolving the issue. one file named dummy.txt will be ftped to Unix machine twice daily. If i receive it second time in a day i need to do some processing with the file. How to find the... (2 Replies)
Discussion started by: RSC1985
2 Replies

4. Shell Programming and Scripting

count multiple objects in shell script

Hi all: Trying to count the number of oracle instances on HPUX 11.23 - using ksh. I have multiple instances running and I would like to have a count for how many processes for each instance. Example, run the 'ps -efu oracle' command and for each instance increment a counter. So I am looking for... (4 Replies)
Discussion started by: raggmopp
4 Replies

5. Shell Programming and Scripting

Hit count on a shell script

I have a unix shell script (ex.sh) written. How to find out how many users (incl. myself) have run this .sh ? I can insert code snipet at top of script if need be. - Ravi (2 Replies)
Discussion started by: ravi368
2 Replies

6. Shell Programming and Scripting

shell to find the count fields of each line

hi, i've many unload files with delimiter '|'. I'm trying to load them to the specific tables from those unl's. The problem here is, some unl's are corrupted. To be exact, some files doesnt seem to have the exact number of fields as in the table. So im trying to identify the corrupted... (6 Replies)
Discussion started by: dvah
6 Replies

7. Shell Programming and Scripting

frequency count using shell

Hello everyone, please consider the following lines of a matrix 59 32 59 32 59 32 59 32 59 32 59 32 59 32 60 32 60 33 60 33 60 33 60 33 60 33 60 33 60 33 60 33 60 33 (7 Replies)
Discussion started by: xshang
7 Replies

8. Shell Programming and Scripting

How to get the file size and count of a table using shell scripting?

Hi there, im a beginner to the shell scripting.i trying to extract a table from a db(IMD) and i have to get the count of that table and size of the file. can you help me out how to write the shall scriping for the above query. (2 Replies)
Discussion started by: pawanmamidi
2 Replies

9. Shell Programming and Scripting

File Count Based on FileDate using Shell Script

I have file listed in my directory in following format -rwxrwxr-x+ 1 test test 4.9M Oct 3 16:06 test20141002150108.txt -rwxrwxr-x+ 1 test test 4.9M Oct 4 16:06 test20141003150108.txt -rwxrwxr-x+ 1 test test 4.9M Oct 5 16:06 test20141005150108.txt -rwxrwxr-x+ 1 test ... (2 Replies)
Discussion started by: krish2014
2 Replies

10. Shell Programming and Scripting

Script Shell: Count The sum of numbers in a file

Hi all; Here is my file: V1.3=4 V1.4=5 V1.1=3 V1.2=6 V1.3=6 Please, can you help me to write a script shell that counts the sum of values in my file (4+5+3+6+6) ? Thank you so much for help. Kind regards. (3 Replies)
Discussion started by: chercheur111
3 Replies
ELASTIX(1)							   User Commands							ELASTIX(1)

NAME
elastix - perform image registration SYNOPSIS
elastix mandatory-args [optional-args] DESCRIPTION
elastix registers a moving image to a fixed image. The registration-process is specified in the parameter file. OPTIONS
Call elastix from the command line with mandatory arguments: -f fixed image -m moving image -out output directory -p parameter file, elastix handles 1 or more "-p" Optional extra commands: -fMask mask for fixed image -mMask mask for moving image -t0 parameter file for initial transform -priority set the process priority to high or belownormal (Windows only) -threads set the maximum number of threads of elastix The parameter-file must contain all the information necessary for elastix to run properly. That includes which metric to use, which opti- mizer, which transform, etc. It must also contain information specific for the metric, optimizer, transform, ... For a usable parame- ter-file, see the website. SEE ALSO
transformix(1) Check the website http://elastix.isi.uu.nl, or mail elastix.support@gmail.com. elastix version: 4.400 December 2010 ELASTIX(1)
All times are GMT -4. The time now is 05:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy