Skip to content

Instantly share code, notes, and snippets.

@viveksoundrapandi
Created May 22, 2014 06:22
Show Gist options
  • Save viveksoundrapandi/5f45121e08f650c37235 to your computer and use it in GitHub Desktop.
Save viveksoundrapandi/5f45121e08f650c37235 to your computer and use it in GitHub Desktop.
merge text files in a directory
for %f in (*.txt) do type "%f" >> output.txt
@viveksoundrapandi
Copy link
Author

The for loop will traverse through all text files in a directory and sends the merged output to a text file called output

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