[Novalug] All files in a directory...

Ben Creitz creitz at gmail.com
Thu Dec 28 10:47:32 EST 2006


> On 12/28/06, Duane C. Mallory <malloryd at themallorys.us> wrote:
> > I would like to take all text files in a directory and append the data
> > in them into one file with a different name. I was hoping I could cheat
> > and use "find" to round them up and then "cat" to append them into
> > another file; unfortunately all this does is append the file names into
> > the new file - not the data in the files.

Are there subdirs? If not, cat does this all by itself.  From within
the directory:

  cat * > summary_file



More information about the Novalug mailing list