Sponsored Content
Top Forums Shell Programming and Scripting Find columns in a file based on header and print to new file Post 302986424 by ripat on Friday 25th of November 2016 05:44:47 AM
Old 11-25-2016
My bad, am I so rusted in awk? Nice catch.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing file content based on file header

Hi, I have several text files each containing some data as shown below: File1.txt >DataHeader Data... Data... File2.txt >DataHeader Data... Data... etc. What I want is to change the 'DataHeader' based on the file name. So the output should look like: File1.txt >File1 ... (1 Reply)
Discussion started by: Fahmida
1 Replies

2. Shell Programming and Scripting

Need to find a column from one file and print certain columns in second file

Hi, I need helping in finding some of the text in one file and some columns which have same column in file 1 EG cat file_1 aaaa bbbb cccc dddd eeee fffff gggg hhhh cat file_2 aaaa,abcd,effgh,ereref,name,age,sex,........... bbbb,efdfh,erere,afdafds,name,age,sex.............. (1 Reply)
Discussion started by: jpkumar10
1 Replies

3. Shell Programming and Scripting

Awk based script to find the median of all individual columns in a data file

Hi All, I have some data like below. Step1,Param1,Param2,Param3 1,2,3,4 2,3,4,5 2,4,5,6 3,0,1,2 3,0,0,0 3,2,1,3 ........ so on Where I need to find the median(arithmetic) of each column from Param1...to..Param3 for each set of Step1 values. (Sort each specific column, if the... (5 Replies)
Discussion started by: ks_reddy
5 Replies

4. Shell Programming and Scripting

Remove the file content based on the Header of the file

Hi All, I want to remove the content based on the header information . Please find the example below. File1.txt Name|Last|First|Location|DepId|Depname|DepLoc naga|rr|tion|hyd|1|wer|opr Nava|ra|tin|gen|2|wera|opra I have to search for the DepId and remove the data from the... (5 Replies)
Discussion started by: i150371485
5 Replies

5. Shell Programming and Scripting

awk based script to find the average of all the columns in a data file

Hi All, I need the modification for the below mentioned code (found in one more post https://www.unix.com/shell-programming-scripting/27161-script-generate-average-values.html) to find the average values for all the columns(but for a specific rows) and print the averages side by side. I have... (4 Replies)
Discussion started by: ks_reddy
4 Replies

6. Shell Programming and Scripting

Compare two files and find match and print the header of the second file

Hi, I have two input files; file1 and file2. I compare them based on matched values in 1 column and print selected columns of the second file (file2). I got the result but the header was not printed. i want the header of file2 to be printed together with the result. Then i did below codes:- ... (3 Replies)
Discussion started by: redse171
3 Replies

7. Shell Programming and Scripting

Make copy of text file with columns removed (based on header)

Hello, I have some tab delimited text files with a three header rows. The headers look like, (sorry the tabs look so messy). index group Name input input input input input input input input input input input... (9 Replies)
Discussion started by: LMHmedchem
9 Replies

8. Emergency UNIX and Linux Support

Average columns based on header name

Hi Friends, I have files with columns like this. This sample input below is partial. Please check below for main file link. Each file will have only two rows. ... (8 Replies)
Discussion started by: jacobs.smith
8 Replies

9. Shell Programming and Scripting

Find header in a text file and prepend it to all lines until another header is found

I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty. I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies

10. UNIX for Beginners Questions & Answers

How to print multiple required columns dynamically in a file using the header name?

Hi All, i am trying to print required multiple columns dynamically from a fie. But i am able to print only one column at a time. i am new to shell script, please help me on this issue. i am using below script awk -v COLT=$1 ' NR==1 { for (i=1; i<=NF; i++) { ... (2 Replies)
Discussion started by: balu1234
2 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:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy