RE: Combo List Splitter 12-04-2019, 11:55 PM
#11
link is down can you re-share this
| Combo List Splitter filter_list | |
(12-04-2019, 11:55 PM)campo21 Wrote: link is down can you re-share this
#!/usr/bin/python
import sys
if len(sys.argv) == 3:
file_path = sys.argv[1]
entries = sys.argv[2]
if entries.isdigit() and int(entries) > 0:
entries = int(entries)
try:
with open(file_path, 'r') as f:
count = 0
filecount = 1
for line in f.readlines():
try:
with open('combolist_part_' + str(filecount) + '.txt', 'a') as file_combo:
file_combo.write(line)
except IOError:
print('File not accessible!')
if count % entries == 0:
filecount += 1
count = 0
count += 1
# Do something with the file
except IOError:
print('File not accessible!')
else:
print('Your second parameter has to be a positive integer!')
else:
print('Invalid amount of parameters!')(08-29-2020, 10:05 AM)classicmosco222 Wrote: thanks for this i really appreciate itThe link Is dead.![]()
![]()
![]()