Johnny - your suggestion should work on Mac OS if one is willing to use the 
terminal, right?


> On May 2, 2015, at 4:47 PM, Johnny Rosenberg <gurus.knu...@gmail.com> wrote:
> 
> 2015-05-02 23:01 GMT+02:00 Brian Barker <b.m.bar...@btinternet.com>:
> 
>> At 11:13 02/05/2015 -0400, Dave Mainwaring wrote:
>> 
>>> Inserting 100 small text files into doc
>>> Need to insert 100 plus small account record files into a single
>>> document. Any simple easy way to do this?
>> 
>> That depends on whether your "text files" are plain text or word processor
>> text documents. If they are plain text, this may be a simple job for your
>> operating system. In Windows, for example,
>> copy a+b c
>> creates a file c containing a concatenation of the contents of files a and
>> b. You could write simple code to include multiple files if they were
>> systematically named
> 
> If text files and on Linux, here's what I would try to do:
> 1. Put them all in a new, or at least empty, folder, perhaps using my
> favourite file manager.
> 2. Open a terminal in that folder.
> 3. cat * > NewFile
> Done.
> 
> NewFile will now contain all text from the hundreds of files in that
> folder. Open it in Apache OpenOffice and do whatever you want with it.
> 
> 
> Kind regards
> 
> Johnny Rosenberg
> ジョニー・ローゼンバーグ
> 
> 
> 
>> 
>> In any case, you could use
>> copy * z
>> to create a file z containing a concatenation of all the files whose names
>> match "*". So
>> copy *.txt z.txt
>> would assemble all plain text files from the current folder.
>> 
>> It's then a trivial task to convert a plain text file into whatever you
>> mean by "doc" or "document".
>> 
>> I trust this helps.
>> 
>> Brian Barker
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@openoffice.apache.org
>> For additional commands, e-mail: users-h...@openoffice.apache.org
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@openoffice.apache.org
For additional commands, e-mail: users-h...@openoffice.apache.org

Reply via email to