Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Batch processing files in a directory

by blue_cowdawg (Prior)
on Feb 13, 2013 at 14:55 UTC ( #1018552=note: print w/ replies, xml ) Need Help??


in reply to Batch processing files in a directory

my approach?

my @files=(); opendir(DIR,"/path/to/my/dir") or die "/path/to/my/dir: $!"; while(my $fname=readdir(DIR)){ push @files,$fname if $fname =~ m@*\.ptseq$@; } closedir(DIR);

      process them such that there are two output files for each input file.

This part of your requirements are not clear to me. Process them how?


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg


Comment on Re: Batch processing files in a directory
Download Code
Re^2: Batch processing files in a directory
by newbie1991 (Acolyte) on Feb 13, 2013 at 15:01 UTC
    Well, the ptseq file has description and sequence information. A1 would contain only descriptions, and A2 would have the sequence information.
          Well, the ptseq file has description and sequence information. A1 would contain only descriptions, and A2 would have the sequence information.

      Maybe I'm stupid, but that means nothing to me.


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018552]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-07-12 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls