19 lines
369 B
Python
19 lines
369 B
Python
#!/usr/bin/python
|
|
|
|
replace_chars = ['[', ']', '\'', ',']
|
|
list_of_ips = ['list-items-in-here']
|
|
new_list = []
|
|
|
|
|
|
def split_ips(list):
|
|
for sub_list in list:
|
|
for ip in sub_list.split():
|
|
for i in range(len(replace_chars)):
|
|
ip = ip.replace(replace_chars[i], '')
|
|
new_list.append(ip)
|
|
|
|
|
|
split_ips(list_of_ips)
|
|
|
|
# some new text
|