Skip to content

Instantly share code, notes, and snippets.

@pkdavies
Created June 21, 2011 14:13
Show Gist options
  • Save pkdavies/1037940 to your computer and use it in GitHub Desktop.
Save pkdavies/1037940 to your computer and use it in GitHub Desktop.
Combine multiple text files
#!/bin/bash
for file in `ls ./*.txt`
do
cat $file >> all.files
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment