Combine multiple text files

Written by Peter Davies on .

This simple script joins multiple text files together allowing you to perform a single file DB import for example:

#!/bin/bash
for file in `ls ./*.txt`
do
    cat $file >> all.files
done