-On [20080108 09:40], Francesco Pietra ([EMAIL PROTECTED]) wrote: >A variant need has now emerged, to perform the same task from a very long >series of shorter files trp.pdb.1, trp.pdb.2 ,..... Could you see how to adapt >the above script to the new need?
Look at sys.argv and pass the list of files to your script as a wildcard: ./myscript.py trp.pdb.* And iterate over every argv you have to strip the WAT. -- Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ The wisdom of the wise, and the experience of ages, may be preserved by quotations... -- http://mail.python.org/mailman/listinfo/python-list