Sponsored Content
Full Discussion: Perl array with row header
Top Forums Shell Programming and Scripting Perl array with row header Post 302489066 by Perderabo on Wednesday 19th of January 2011 11:28:58 AM
Old 01-19-2011
Note that durden_tyler also fixed a bug I had in iterating over the fields. Be sure to use the corrected perl script rather than my initial attempt.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

insert header row into .xls

Hello, I am building an .xls file extracting info from a DB to be eventually emailed. All is good except how do I put in a header row.. like date, name of report etc. before the columns with the actual column name and data? Thanks for any assistance.. the below is after I have signed into... (11 Replies)
Discussion started by: Tish
11 Replies

2. UNIX for Dummies Questions & Answers

split header row into one column

So, I have a massive file with thousands of columns I want a list of the headers in one column in another file. So I need to strip off the top line (can use head-1) But how can I convert from this format: A B C D E F G to A B C D E F G (6 Replies)
Discussion started by: polly_falconer
6 Replies

3. UNIX for Dummies Questions & Answers

Merge all csv files in one folder considering only 1 header row and ignoring header of all others

Friends, I need help with the following in UNIX. Merge all csv files in one folder considering only 1 header row and ignoring header of all other files. FYI - All files are in same format and contains same headers. Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies

4. Shell Programming and Scripting

Exclude the header row in the file to validate

Hi All, File contains header row.. we need to exclude the header row...no need to validate the first row in the file. Data in the file should take valid data(two columns)..we need to exclude the more than two columns in the file except the first line. email|firstname a|123|100 b|345... (4 Replies)
Discussion started by: bmk
4 Replies

5. Shell Programming and Scripting

Add column header and row header

Hi, I have an input like this 1 2 3 4 2 3 4 5 4 5 6 7 I would like to count the no. of columns and print a header with a prefix "Col". I would also like to count the no. of rows and print as first column with each line number with a prefix "Row" So, my output would be ... (2 Replies)
Discussion started by: jacobs.smith
2 Replies

6. UNIX for Dummies Questions & Answers

File Row Line Count without Header Footer

Hi There! I am saving the file count of all files in a directory to an output file using: wc -l * > FileCount.txt I get: 114 G4SXORD 3 G4SXORH 0 G4SXORP 117 total But this count includes header and footer. I want to subtract 2 from the count and get ... (7 Replies)
Discussion started by: gagan8877
7 Replies

7. Shell Programming and Scripting

Exclude the header row while splitting the file

Hi All, i have script like ... "TYPE_ID" "ID" "LIST_ID" "18" "52010" "1059" "18" "52010" "1059" "18" "52010" "1059" "18" "52010" "1059" i am using the below code it's not taking the header row. awk -F"\t" -v file=test1.txt -v file1=test2.txt ' { if(... (7 Replies)
Discussion started by: bmk
7 Replies

8. Shell Programming and Scripting

How to display the header of a matched row in a file?

Hi, So I am trying to print the first row(header) first column alongwith the matched value. But I am not sure how do I print the same, by matching a pattern located in the file eg File contents Name Place Jim NY Jill NJ Cathy CA Sam TX Daniel FL And what I want is... (2 Replies)
Discussion started by: sidnow
2 Replies

9. Shell Programming and Scripting

At text to field 1 of header row using awk

I am just trying to insert the word "Index" using awk. The below is close but seems to add the word at the end and I can not get the syntax correct to add from the beginning. Thank you :). awk -F'\t' -v OFS='\t' '{ $-1=$-1 OFS "Index"}$1=$1' file current output Chr Start End ... (3 Replies)
Discussion started by: cmccabe
3 Replies

10. Shell Programming and Scripting

awk to skip header row and add string to field

The awk below does put in VUS in the 9th field but I can not seem to skip the header then add the VUS. I tried to incorporate NR >=2 and NR > 1 with no luck. Thank you :). input Chr Start End Ref Alt Func.refGene PopFreqMax CLINSIG Classification chr1 43395635 ... (5 Replies)
Discussion started by: cmccabe
5 Replies
PERL586DELTA(1) 					 Perl Programmers Reference Guide					   PERL586DELTA(1)

NAME
perl586delta - what is new for perl v5.8.6 DESCRIPTION
This document describes differences between the 5.8.5 release and the 5.8.6 release. Incompatible Changes There are no changes incompatible with 5.8.5. Core Enhancements The perl interpreter is now more tolerant of UTF-16-encoded scripts. On Win32, Perl can now use non-IFS compatible LSPs, which allows Perl to work in conjunction with firewalls such as McAfee Guardian. For full details see the file README.win32, particularly if you're running Win95. Modules and Pragmata o With the "base" pragma, an intermediate class with no fields used to messes up private fields in the base class. This has been fixed. o Cwd upgraded to version 3.01 (as part of the new PathTools distribution) o Devel::PPPort upgraded to version 3.03 o File::Spec upgraded to version 3.01 (as part of the new PathTools distribution) o Encode upgraded to version 2.08 o ExtUtils::MakeMaker remains at version 6.17, as later stable releases currently available on CPAN have some issues with core modules on some core platforms. o I18N::LangTags upgraded to version 0.35 o Math::BigInt upgraded to version 1.73 o Math::BigRat upgraded to version 0.13 o MIME::Base64 upgraded to version 3.05 o POSIX::sigprocmask function can now retrieve the current signal mask without also setting it. o Time::HiRes upgraded to version 1.65 Utility Changes Perl has a new -dt command-line flag, which enables threads support in the debugger. Performance Enhancements "reverse sort ..." is now optimized to sort in reverse, avoiding the generation of a temporary intermediate list. "for (reverse @foo)" now iterates in reverse, avoiding the generation of a temporary reversed list. Selected Bug Fixes The regexp engine is now more robust when given invalid utf8 input, as is sometimes generated by buggy XS modules. "foreach" on threads::shared array used to be able to crash Perl. This bug has now been fixed. A regexp in "STDOUT"'s destructor used to coredump, because the regexp pad was already freed. This has been fixed. "goto &" is now more robust - bugs in deep recursion and chained "goto &" have been fixed. Using "delete" on an array no longer leaks memory. A "pop" of an item from a shared array reference no longer causes a leak. "eval_sv()" failing a taint test could corrupt the stack - this has been fixed. On platforms with 64 bit pointers numeric comparison operators used to erroneously compare the addresses of references that are overloaded, rather than using the overloaded values. This has been fixed. "read" into a UTF8-encoded buffer with an offset off the end of the buffer no longer mis-calculates buffer lengths. Although Perl has promised since version 5.8 that "sort()" would be stable, the two cases "sort {$b cmp $a}" and "sort {$b <=> $a}" could produce non-stable sorts. This is corrected in perl5.8.6. Localising $^D no longer generates a diagnostic message about valid -D flags. New or Changed Diagnostics For -t and -T, Too late for "-T" option has been changed to the more informative "-T" is on the #! line, it must also be used on the command line Changed Internals From now on all applications embedding perl will behave as if perl were compiled with -DPERL_USE_SAFE_PUTENV. See "Environment access" in the INSTALL file for details. Most "C" source files now have comments at the top explaining their purpose, which should help anyone wishing to get an overview of the implementation. New Tests There are significantly more tests for the "B" suite of modules. Reporting Bugs If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at http://bugs.perl.org. There may also be information at http://www.perl.org, the Perl Home Page. If you believe you have an unreported bug, please run the perlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of "perl -V", will be sent off to perlbug@perl.org to be analysed by the Perl porting team. You can browse and search the Perl 5 bugs at http://bugs.perl.org/ SEE ALSO
The Changes file for exhaustive details on what changed. The INSTALL file for how to build Perl. The README file for general stuff. The Artistic and Copying files for copyright information. perl v5.16.2 2012-08-26 PERL586DELTA(1)
All times are GMT -4. The time now is 05:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy