24 Nov 2012 19:08
Re: use cookbook to work with a directory of files
Tom Keller <kellert <at> ohsu.edu>
2012-11-24 18:08:11 GMT
2012-11-24 18:08:11 GMT
A search with the phrase "perl cookbook filenames from directory" should help you find what you need. On Nov 24, 2012, at 9:00 AM, bioperl-l-request <at> lists.open-bio.org wrote: > Send Bioperl-l mailing list submissions to > bioperl-l <at> lists.open-bio.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.open-bio.org/mailman/listinfo/bioperl-l > or, via email, send a message with subject or body 'help' to > bioperl-l-request <at> lists.open-bio.org > > You can reach the person managing the list at > bioperl-l-owner <at> lists.open-bio.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Bioperl-l digest..." > > > Today's Topics: > > 1. retrieving a subset of files from a folder (maha ahmed) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 24 Nov 2012 03:33:59 +0200 > From: maha ahmed <mahakadry <at> aucegypt.edu> > Subject: [Bioperl-l] retrieving a subset of files from a folder > To: Bioperl-l <at> lists.open-bio.org > Message-ID: > <CAE=MQgzV7Z-bQxiQFDuHHaEr=XL5=cTc6Mhq1Su7VPByZNEP6Q <at> mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Dear Bioperl list, > I have a folder that has 60,000 files (one file for each phylogenetic tree) > However I only need to work with a subset of 1,000 files from that folder > (the files are not numbered in order so I cant use the i++ loop in my > bioperl script) > Is there a way to write a script that only moves files with the names given > in a list in a text file > i.e. I have a file that has the names of the files I want to copy fro m the > folder and I want to write script that does this > Thank you so much > > > ------------------------------ > > _______________________________________________ > Bioperl-l mailing list > Bioperl-l <at> lists.open-bio.org > http://lists.open-bio.org/mailman/listinfo/bioperl-l > > End of Bioperl-l Digest, Vol 115, Issue 8 > *****************************************
RSS Feed