Sponsored Content
Full Discussion: Flag duplicate enteries
Top Forums Shell Programming and Scripting Flag duplicate enteries Post 302844383 by Junes on Monday 19th of August 2013 06:02:02 AM
Old 08-19-2013
Flag duplicate enteries

Morning Unix Guru's,
I have written a script which output the contents of a DB. No the DB is not clever to check this or flag and there is no command for the tool to flag this, which human intervention.

But i need to check to see if there are duplicate enteries in the file output and flag them.

So the example below there is duplicate enteries for actlni02 and allocd01.

How do i flag this?


Code:
actlni02              LDN_CAM_UX_PRD
actlni02              LDN_DKTP_PC
actlnp03             LDN_CAM_UX_PRD
adsdbi01             LDN_CAM_UX_PRD
algomd01            LDN_WAT_UX_DEV
allocd01              LDN_CAM_UX_DEV
allocd01              LDN_WAT_UX_DEV

Any advice will be greatly appericated.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

the flag -c in sh command

I need your help please. In a production system, i've seen many running process as follow: sh -c ./pathname/shellname what exactly the flag option -c is used for? ive tried to look at the man page, but it doesnt say much. ill appreciate yor help. Thanks (4 Replies)
Discussion started by: alexcol
4 Replies

2. UNIX for Advanced & Expert Users

LOST my crontab enteries of root

Hello All, I did very stupid mistake and lost all my crontab enteries on root prompt. Please help me to solve this issue. i did entry on root prompt like this. crontab /home/back.cron and enters but when i enter crontab -l so its only showing 1 entry defined in back.cron and all... (2 Replies)
Discussion started by: wakhan
2 Replies

3. AIX

du flag -x

Hi, I would like to know if there's any option to use with the du command so that I can list only the files/directories on the current filesystem... I usually use du -gs *But I'd like to see only the directories in the filesystem I am on, and not the mount point directory of other fss... ... (6 Replies)
Discussion started by: Casey
6 Replies

4. Shell Programming and Scripting

Add the flag

#!/bin/bash while : do ./abc.sh PB sleep 60 ./abc.sh RA sleep 60 ./abc.sh GS sleep 68400 done Instead of making the script sleep for sometime, it doesn't work all the time as time may shift over a period. How to make a script wake up every 30 seconds and check the current time, if... (2 Replies)
Discussion started by: sandy1028
2 Replies

5. Solaris

vfstab enteries automatically added during live upgrade

i am trying to patch a solaris 10 server using live upgrade. issue is, when i create a new BE and activate it during reboot the file system that are mounted but doesnt have an entry in vfstab are automatically added in vfstab of new BE. looks like live upgrade uses df -h output as reference... (0 Replies)
Discussion started by: chidori
0 Replies

6. Shell Programming and Scripting

Find duplicate based on 'n' fields and mark the duplicate as 'D'

Hi, In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'. In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies

7. AIX

Flag issue

Hi all, We dont have access to aix source code and i have a doubt. The flag SC_NO_RESERVE, is it got to do anything with the failover? If the flag is set the paths are going to failed state. If flag is not set everything comes up fine after failover. Thanks in advance for helping ... (2 Replies)
Discussion started by: gnakul
2 Replies

8. UNIX for Dummies Questions & Answers

'h' flag in du

Hey, all! Why is the "human readable" flag changing the behavior of du? And while I'm at it, can you make du only look at files, not directories. I often find myself wanting to find the largest file(s) in a dir or vol. Using 'find' itself, it seems you have to at least be able to guess the size of... (2 Replies)
Discussion started by: sudon't
2 Replies

9. Shell Programming and Scripting

Scripting Question - getting lines above ane below certain enteries

Hello - I have a file in the followig format LINE TEXT 1 Line TEXT 2 TIMESTARTED=Fri Aug 16 15:20:23 EDT 2013 START-OF-DATA 123 123444 23232323 END-OF-DATA Line TEXT 9 I need to get all the lines between the Start of Data and End of Data and pipe it to a file so output should be ... (5 Replies)
Discussion started by: mnassiri
5 Replies

10. UNIX for Dummies Questions & Answers

Get the id with specify flag

.... means multi line ddd,bug fgdrg dfdfsdfdfsd fsdfdfdfd fdfdsfdsfsd ....... flag2 ...... aaa,bug sfsfsfsfs dfdfsdfdfsd fsdfdfdfd fdfdsfdsfsd ...... flag1 ...... ddd,bug fgdrg dfdfsdfdfsd (9 Replies)
Discussion started by: yanglei_fage
9 Replies
CDF(3pm)						User Contributed Perl Documentation						  CDF(3pm)

NAME
PDL::GSL::CDF - PDL interface to GSL Cumulative Distribution Functions DESCRIPTION
This is an interface to the Cumulative Distribution Function package present in the GNU Scientific Library. SYNOPSIS
use PDL; use PDL::GSL::CDF; my $p = gsl_cdf_tdist_P( $t, $df ); my $t = gsl_cdf_tdist_Pinv( $p, $df ); FUNCTIONS
gsl_cdf_ugaussian_P Signature: (double x(); [o]out()) gsl_cdf_ugaussian_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_ugaussian_Pinv Signature: (double p(); [o]out()) gsl_cdf_ugaussian_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gaussian_P Signature: (double x(); double sigma(); [o]out()) gsl_cdf_gaussian_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gaussian_Pinv Signature: (double p(); double sigma(); [o]out()) gsl_cdf_gaussian_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gamma_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_gamma_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gamma_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_gamma_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_cauchy_P Signature: (double x(); double a(); [o]out()) gsl_cdf_cauchy_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_cauchy_Pinv Signature: (double p(); double a(); [o]out()) gsl_cdf_cauchy_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_laplace_P Signature: (double x(); double a(); [o]out()) gsl_cdf_laplace_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_laplace_Pinv Signature: (double p(); double a(); [o]out()) gsl_cdf_laplace_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_rayleigh_P Signature: (double x(); double sigma(); [o]out()) gsl_cdf_rayleigh_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_rayleigh_Pinv Signature: (double p(); double sigma(); [o]out()) gsl_cdf_rayleigh_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_chisq_P Signature: (double x(); double nu(); [o]out()) gsl_cdf_chisq_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_chisq_Pinv Signature: (double p(); double nu(); [o]out()) gsl_cdf_chisq_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_exponential_P Signature: (double x(); double mu(); [o]out()) gsl_cdf_exponential_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_exponential_Pinv Signature: (double p(); double mu(); [o]out()) gsl_cdf_exponential_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_exppow_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_exppow_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_tdist_P Signature: (double x(); double nu(); [o]out()) gsl_cdf_tdist_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_tdist_Pinv Signature: (double p(); double nu(); [o]out()) gsl_cdf_tdist_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_fdist_P Signature: (double x(); double nua(); double nub(); [o]out()) gsl_cdf_fdist_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_fdist_Pinv Signature: (double p(); double nua(); double nub(); [o]out()) gsl_cdf_fdist_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_beta_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_beta_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_beta_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_beta_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_flat_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_flat_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_flat_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_flat_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_lognormal_P Signature: (double x(); double zeta(); double sigma(); [o]out()) gsl_cdf_lognormal_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_lognormal_Pinv Signature: (double p(); double zeta(); double sigma(); [o]out()) gsl_cdf_lognormal_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gumbel1_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_gumbel1_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gumbel1_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_gumbel1_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gumbel2_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_gumbel2_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_gumbel2_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_gumbel2_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_weibull_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_weibull_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_weibull_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_weibull_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_pareto_P Signature: (double x(); double a(); double b(); [o]out()) gsl_cdf_pareto_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_pareto_Pinv Signature: (double p(); double a(); double b(); [o]out()) gsl_cdf_pareto_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_logistic_P Signature: (double x(); double a(); [o]out()) gsl_cdf_logistic_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_logistic_Pinv Signature: (double p(); double a(); [o]out()) gsl_cdf_logistic_Pinv does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_binomial_P Signature: (ushort k(); double p(); ushort n(); [o]out()) gsl_cdf_binomial_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_poisson_P Signature: (ushort k(); double mu(); [o]out()) gsl_cdf_poisson_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_geometric_P Signature: (ushort k(); double p(); [o]out()) gsl_cdf_geometric_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_negative_binomial_P Signature: (ushort k(); double p(); double n(); [o]out()) gsl_cdf_negative_binomial_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_pascal_P Signature: (ushort k(); double p(); ushort n(); [o]out()) gsl_cdf_pascal_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. gsl_cdf_hypergeometric_P Signature: (ushort k(); ushort na(); ushort nb(); ushort t(); [o]out()) gsl_cdf_hypergeometric_P does handle bad values. It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles. AUTHOR
Copyright (C) 2009 Maggie J. Xiong <maggiexyz users.sourceforge.net> The GSL CDF module was written by J. Stover. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation as described in the file COPYING in the PDL distribution. perl v5.14.2 2012-06-04 CDF(3pm)
All times are GMT -4. The time now is 09:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy