Python script for combining all text, txt file under same directory into one (line by line) with No duplicates. Actually for combining text dictionary for text mining.
python dicMerge.py "Full Path of your directory" "output_file_name.txt"
e.g. python dicMerge.py /home/users result.txt
-
"Full Path of your directory" = /home/Users/combining_folder_name/
then all *.txt file should under this combining_folder_name.
-
"output_file_name.txt" = result.txt
-
output file will generate in the same path you specified;