0

I'm trying to concatenate several .doc files none of them bigger than 15 KB, I'm trying the usual

cat file1.doc file2.doc file3.doc > new_file.doc

But despite the result is an almost 200 KB new .doc file this only shows the first of the original .doc files content.

Any ideas? What I'm doing wrong? It's not possible to concatenate .doc files with cat?

Any help is appreciated.

Thanks in advance.

  • 1
    This is why sysadmins and devs tend to dislike binary formats. – Wildcard Aug 19 '16 at 22:57
  • Yeah! try to explain that to regular user.... Thanks anyway! – eisenseinstein Aug 19 '16 at 23:09
  • Wow!! @don_crissti that's a good one that I didn't know!! I'm going to try that cause the user it's using libreoffice and converting into .doc(stupid I know) from now on she'll must be compelled to save her files in .odt or manually merge them herself!! :DDD Thanks a lot, this is the best answer! – eisenseinstein Aug 19 '16 at 23:30
0

This is because .doc files are in Microsoft Word format, not plain text files that you can concatenate together.

The file's header will actually tell your word processor how the data is organized, therefore only listing the first part.

In order to combine them together, you would need to import them using a word processing application and then append them to each other.

  • Bloody Microsoft!!! Always making a hell of my life. Thanks Julie. – eisenseinstein Aug 19 '16 at 23:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.