Strip lines from files
Jeroen Ruigrok van der Werven
asmodai at in-nomine.org
Tue Jan 8 03:58:34 EST 2008
-On [20080108 09:40], Francesco Pietra (chiendarret at yahoo.com) 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...
More information about the Python-list
mailing list