what's the quickest way to take a list of files and a name of an output file and merge them into a single file while removing duplicate lines? something like
cat file1 file2 file3 | sort -u > out.file
in python.
prefer not to use system calls.
AND:
what's the quickest way to split a list in python into X chunks (list of lists) as equal as possible? (given a list and X.)