Skip to content

Instantly share code, notes, and snippets.

@Lukas238
Last active September 7, 2016 20:51
Show Gist options
  • Save Lukas238/735b6dfa80bbdceea4ba34dd559346de to your computer and use it in GitHub Desktop.
Save Lukas238/735b6dfa80bbdceea4ba34dd559346de to your computer and use it in GitHub Desktop.
Merge multiple Text (.txt) Files in a single one from the Command Prompt
  1. Open a CLI terminal on the folder with all the file you want to merge.
  2. Copy and paste the following command:
$ copy *.html  output.html

This command will select all the text (.txt) files in the directory and output them all merged together into the new text file called output.txt which you can rename to whatever you like. Echo each new line after reading each file, as every new file written to the merged file will start at the end of the last current line.

Via: http://www.wikihow.com/Merge-Text-(.Txt)-Files-in-Command-Prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment