Various simple Ruby examples.
-Author: [http://www.cmzmasek.net/ Christian M Zmasek], Sanford-Burnham Medical Research Institute
+Author: [https://sites.google.com/site/cmzmasek/ Christian Zmasek], Sanford-Burnham Medical Research Institute
Copyright (C) 2011 Christian M Zmasek. All rights reserved.
pepfiles = ftp.list()
pepfiles.each do | pepfile |
pepfile = pepfile.split().last
- if pepfile =~ /all.fa./
+ if pepfile =~ /all.fa.gz/ # Only want the "all.fa.gz" files (and not the
+ # "abinitio" files).
ftp.getbinaryfile(pepfile)
puts 'downloaded "' + pepfile + '"'
count += 1