Sponsored Content
Top Forums Shell Programming and Scripting Need Perl script to compare two CSV files Post 302504690 by sreedhargouda on Wednesday 16th of March 2011 01:36:26 AM
Old 03-16-2011
OUTput

Code:
No Profile Profile Name PM TP
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl06/port#07-#01-Au4P-4c-TMe-PMFETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl06/port#07-#01-Au4P-4c-TMe-PMNETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl06/port#07-#01-Au4P-4c-TMi-PMFETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl06/port#07-#01-Au4P-4c-TMi-PMNETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl13/port#03-#05-Au4P-4c-TMe-PMFETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl13/port#03-#05-Au4P-4c-TMe-PMNETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl13/port#03-#05-Au4P-4c-TMi-PMFETR15
No Profile AESV-T4733 HYD_SPT_A_A587/r01sr3sl13/port#03-#05-Au4P-4c-TMi-PMNETR15
No Profile AESV-T4733 EBD_BHA_A_A011/r01sr3sl02/port#03-#05-Au4P-4c-TMi-PMNETR15
No Profile AESV-T4733 EBD_BHA_A_A011/r01sr3sl02/port#03-#05-Au4P-4c-TMi-PMFETR15
No Profile AESV-T4733 EBD_BHA_A_A011/r01sr3sl02/port#03-#05-Au4P-4c-TMe-PMNETR15
No Profile AESV-T4733 EBD_BHA_A_A011/r01sr3sl02/port#03-#05-Au4P-4c-TMe-PMFETR15
No Profile AESV-T4733 EBD_BHA_A_A011/r01sr3sl03/port#03-#05-Au4P-4c-TMi-PMNETR15
No Profile AESV-T4733 EBD_BHA_A_A011/r01sr3sl03/port#03-#05-Au4P-4c-TMi-PMFETR15

this is giving for PMTps to no profile even the profile present "AESV-T4733"

please help me to reslove this

---------- Post updated 03-16-11 at 11:06 AM ---------- Previous update was 03-15-11 at 05:28 PM ----------

Quote:
Originally Posted by sreedhargouda
please have look
thanks...

Last edited by Scott; 04-05-2011 at 02:35 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

compare 2 coloum of 2 diff files using perl script

Hi, i am new to perl scripting.. i am still learing it.. i am asked to write a perl script which should compare 2 coloums of 2 different files. if those 2 coloumn are same the script should store the both the lines in 2 diff files. these are files, file 1: 21767016 226112 char 19136520... (3 Replies)
Discussion started by: vasuki
3 Replies

2. UNIX for Dummies Questions & Answers

Compare 2 csv files in perl

need to compare 2 csv files and report should containg number of matching lines,different lines ,missing lines in one file using perl. I dont want to use read line by line and scan thru the second file for matching line ,as this logic was so time consuming .Any ideas.i need the soultion badly .... (2 Replies)
Discussion started by: kittu1979
2 Replies

3. UNIX for Dummies Questions & Answers

How to compare csv files using perl

I need to compare 2 csv files and report should containg number of matching lines,different lines ,missing lines in one file using perl. I dont want to use read line by line and scan thru the second file for matching line ,as this logic was so time consuming .Can other ideas .please respond asap... (2 Replies)
Discussion started by: kittu1979
2 Replies

4. Shell Programming and Scripting

Need to compare two csv files values and write into another csv file

Hi all, Am new to scripting. So i just need your ideas to help me out. Here goes my requirement. I have two csv files 1.csv 2.csv abc,1.24 abc,1 def,2.13 def,1 I need to compare the first column of 1.csv with 2.csv and if matches then need to compare... (2 Replies)
Discussion started by: chinnahyd
2 Replies

5. Shell Programming and Scripting

Help with script to open and compare csv files

We are testing an application that accesses two tables: A and B. I am to write a script to validate the ouput files of this application.The application marks any account that has become overdue as per rule. When it runs, it updates the overdue flag in the A table according to the following rules: ... (1 Reply)
Discussion started by: inkyponky
1 Replies

6. Shell Programming and Scripting

Perl script to compare two files

hi, As such I am new to perl on google search I found a code for Perl script to compare two files and print differences between them and instead of prinintg I want to store the diff. in a outputfile so can sombody provide assistance upon this from where can I edit in script to store the diff in... (1 Reply)
Discussion started by: dinesh.4126
1 Replies

7. Shell Programming and Scripting

Compare 2 csv files in ksh and o/p the difference in a new csv file

(say) I have 2 csv files - file1.csv & file2.csv as mentioned below: file1.csv ID,version,cost 1000,1,30 2000,2,40 3000,3,50 4000,4,60 file2.csv ID,version,cost 1000,1,30 2000,2,45 3000,4,55 6000,5,70 The... (7 Replies)
Discussion started by: Naresh101
7 Replies

8. Shell Programming and Scripting

Perl script to Convert XLSX or XLS files to CSV file

Hi All, I've got in a situation where I need to convert .xlsx or .xls formatted files into simple text file or .csv file. I've found many options but doing this using PERL script is the best way I believe.I'm in AIX box. Perl code should have 2 params while running. i.e perl... (1 Reply)
Discussion started by: manab86
1 Replies

9. Shell Programming and Scripting

Script to compare count of two csv files

Hi Guys, I need to write a script to compare the count of two csv files each having 5 columns. Everyday a csv file is recived. Now we need to compare the count of todays csv file with yesterday's csv file and if the total count of records is same in todays csv file and yesterday csv file out... (3 Replies)
Discussion started by: Vivekit82
3 Replies

10. Shell Programming and Scripting

Need awk or Shell script to compare Column-1 of two different CSV files and print if column-1 matche

Example: I have files in below format file 1: zxc,133,joe@example.com cst,222,xyz@example1.com File 2 Contains: hxd hcd jws zxc cst File 1 has 50000 lines and file 2 has around 30000 lines : Expected Output has to be : hxd hcd jws (5 Replies)
Discussion started by: TestPractice
5 Replies
Bio::Tools::Run::Profile(3pm)				User Contributed Perl Documentation			     Bio::Tools::Run::Profile(3pm)

NAME
Bio::Tools::Run::Profile SYNOPSIS
Build a Profile factory # $paramfile is the full path to the seg binary file my @params = ('DB',$dbfile,'PROGRAM',$paramfile); my $factory = Bio::Tools::Run::Profile->new($param); # Pass the factory a Bio::PrimarySeqI object # @feats is an array of Bio::SeqFeature::Generic objects my @feats = $factory->run($seq); DESCRIPTION
Wrapper module for the pfscan program FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: http://redmine.open-bio.org/projects/bioperl/ AUTHOR - Balamurugan Kumarasamy Email: fugui@worf.fugu-sg.org APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ program_name Title : program_name Usage : $factory>program_name() Function: holds the program name Returns: string Args : None program_dir Title : program_dir Usage : $factory->program_dir(@params) Function: returns the program directory, obtained from ENV variable. Returns: string Args : new Title : new Usage : my $factory= Bio::Tools::Run::Profile->new($param); Function: creates a new Profile factory Returns: Bio::Tools::Run::Profile Args : predict_protein_features Title : predict_protein_features Usage : DEPRECATED. Use $factory->run($seq) instead. Function: Runs Profile and creates an array of featrues Returns : An array of L<Bio::SeqFeature::FeaturePair> objects Args : A Bio::PrimarySeqI run Title : run Usage : my @feats = $factory->run($seq) Function: Runs Profile Returns : An array of L<Bio::SeqFeature::FeaturePair> objects Args : A Bio::PrimarySeqI _input Title : _input Usage : $factory->_input($seqFile) Function: get/set for input file Returns : Args : _run Title : _run Usage : $factory->_run() Function: Makes a system call and runs pfscan Returns : An array of L<Bio::SeqFeature::FeaturePair> objects Args : _writeSeqFile Title : _writeSeqFile Usage : $factory->_writeSeqFile($seq) Function: Creates a file from the given seq object Returns : A string(filename) Args : Bio::PrimarySeqI perl v5.12.3 2011-06-18 Bio::Tools::Run::Profile(3pm)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy