Todd Zullinger wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bob Goodwin wrote:
Tony Nelson wrote:
At 11:25 AM -0400 7/29/06, Bob Goodwin wrote:
Can someone tell me how to combine a number of
text files into one file?
I have about fifty open office [.odt] text files
Those are not text files. That is your main problem.
that I would like to combine into one file containing
all of that text. Nothing I have tried is acceptable
to open office?
I am running updated FC5 and have been trying to do
this from the command line, then opening the result
in open office.
That won't work. You need to do this in OOo. It's what knows how
to handle .odf files.
That may be right, I will try changing them to .txt files.
I can't imagine how that would work. Changing the extension won't
make the open office files into text files. They will still have the
same contents as before and that's why you can't just cat them
together.
Here's a post from the openoffice.org users list where someone asked
how to do this and got two replies offering ways to achieve this:
http://www.openoffice.org/servlets/ReadMsg?listName=users&msgNo=114490
(Note that I don't use openoffice with any frequency, so forgive me if
I'm missing something.)
Yes, changing the .odt files back to .txt seems to do it. OpenOffice
offers to save files with various extensions/formats. They were derived
from a large .txt file and OO changed them to .odt as I worked on them.
It also permits me to save them as "TXT" files which I did with several
and they then displayed properly when combined in one file.
cat *.txt > append.txt
Combines them in one file append.txt
ll *.txt
-rw-r--r-- 1 root root 2321 Jul 29 12:37 append.txt
-rw-r--r-- 1 root root 522 Jul 29 12:32 cd-1.txt
-rw-r--r-- 1 root root 875 Jul 29 12:34 cd-2.txt
-rw-r--r-- 1 root root 104 Jul 29 12:35 cdfstab-1.txt
-rw-r--r-- 1 root root 820 Jul 29 12:36 colors-1.txt
Thanks for the help.
Bob Goodwin