Perl: How to open multiple files from a folder and print only column with the given string using perl
Hi all,
I have a basic knowledge of perl and I occasionally use perl scripts to manage and process data, currently am trying to open multiple, tab separated files from a given folder and print the columns with the given string into a single file.
Here is a small example of the input file:
Col1 alpha1 alpha2 beta11
a 4 2 T
b 2 5 T
c 6 6 F
d 3 7 T
For each file I want only columns which has header alpha.
Can someone help me regarding this issue.
Thanks in anticipation
• 2,584 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello R Ravi!
We believe that this post does not fit the main topic of this site.
Not a bioinformatics question
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
Hi Ryan,
My apologies if the post is inappropriate, I just started with Biostar and I work with NGS data, and the file I actually want to process is a NGS output called TargetedQC file. I have given an example just for the feel of the file I want to analyze. So should it not be considered?
Thanks
Not really, no. This is just a perl question. Post it to stackoverflow and make sure to demonstrate having tried a solution.