Hi,

I at trying to create a bunch of text files in a single directory on a 
Linux system,
something like this.

import os

routers = ['adnc-6321', 'adnp-2341', 'adnw-2632']

for i in routers:
    os.system('/bin/touch' %s) % i

of course this dosn't work.

Is there a simple way to get this done?

Thanks for your time.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to