@@ -0,0 +1,468 @@
+#!/usr/bin/env python3%0A#  -*- coding: UTF-8 -*-%0Aimport argparse%0A%0Aargparser = argparse.ArgumentParser(description=%22Split text file rows to separate files%22)%0A%0Aargparser.add_argument(%22filename%22, help=%22Filename to split%22)%0Aargs = argparser.parse_args()%0A%0Awith open(args.filename, 'r') as input:%0A    for index, line in enumerate(input):%0A        with open('%7Bprefix%7D_%7Bid%7D.txt'.format(id=index, prefix=args.filename.split('.')%5B0%5D), 'w') as output:%0A            output.write(line)%0A

Add a file to split text files by rows