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?
I don't get the output I would expect from the following.
The variable clean1 gives me an empty string. But if i change the for
loop to print i[26:40] I get all the info.
what do I need to do to capture all the data to clean1?
Thanks.
>>> a = open('arp.txt')
>>> file = a.read()
>>> file =