Concatenating a bunch of files

March 8, 2007

A useful little tidbit. To merge the contents of all the files in an arbitrary directory hierachy into one single file, while skipping dot-files:

> find . -type f \! -name ".*" -exec cat {} > /Users/filipp/specs.txt \;