Splitting and Joining Files

Splitting and Joining Files

Post by michael.mcga.. » Mon, 07 Nov 2005 13:27:21



Hi,

I am not sure if this is the right forum for this, my apologies if it
is not.

I was wondering if anyone knew of a standard file splitting and joining

utility that I can use in the bash shell in Linux and Mac OS X (i.e.
all Unix variants if possible)?

Thanks for any help,

Michael

 
 
 

Splitting and Joining Files

Post by Chris F.A. Johnso » Mon, 07 Nov 2005 13:37:31



> Hi,

> I am not sure if this is the right forum for this, my apologies if it
> is not.

> I was wondering if anyone knew of a standard file splitting and joining
> utility that I can use in the bash shell in Linux and Mac OS X (i.e.
> all Unix variants if possible)?

     Yes: split (or csplit) and cat.

--
  Chris F.A. Johnson                   | Author:
  <http://cfaj.freeshell.org>          |      Shell Scripting Recipes:
  Any code in this post is released    |  A Problem-Solution Approach,
  under the GNU General Public Licence |                 2005, Apress

 
 
 

Splitting and Joining Files

Post by Janis Papanagno » Mon, 07 Nov 2005 13:39:26



> Hi,

> I am not sure if this is the right forum for this, my apologies if it
> is not.

It is the right newsgroup.

Quote:> I was wondering if anyone knew of a standard file splitting and joining

> utility that I can use in the bash shell in Linux and Mac OS X (i.e.
> all Unix variants if possible)?

> Thanks for any help,

> Michael

If by "joining" you mean inversion of the splitting...

man split
man cat

Split splits files after a defined number of lines (or bytes) and cat
concatenates files.

Janis

 
 
 

Splitting and Joining Files

Post by Bill Marcu » Tue, 08 Nov 2005 04:07:20


On Sun, 06 Nov 2005 05:39:26 +0100, Janis Papanagnou



>> Hi,

>> I am not sure if this is the right forum for this, my apologies if it
>> is not.

> It is the right newsgroup.

>> I was wondering if anyone knew of a standard file splitting and joining

>> utility that I can use in the bash shell in Linux and Mac OS X (i.e.
>> all Unix variants if possible)?

>> Thanks for any help,

>> Michael

> If by "joining" you mean inversion of the splitting...

> man split
> man cat

> Split splits files after a defined number of lines (or bytes) and cat
> concatenates files.

> Janis

For different kinds of splitting and joining, there are also cut, paste
and join.

--
We don't really understand it, so we'll give it to the programmers.

 
 
 

1. Joining split files

Hello,

I downloaded the StarOffice 6.0 beta but as I have only a 100MB ZIP drive
I needed to split the files. I did this on my Windows box in the office.

At home I wanted to join the two files with the following command

cat so6.001 so6.002 > so6.bin (the actual filenames where different)
chmod a+x so6.bin

When I execute the resulting file, I get a strange error. Something
like "end-of-zip directory not found" and several other messages and
the installer refuses to start.

What am I missing here?

I know I have the option to download several smaller files and I will
probably do that, but still I'd like to know if I did something
wrong when joining the two files.

Cheers and thanks in advance
Thomas

2. How to configure ftp

3. Beginner has another question

4. tool for joining various (text) files, editing and splitting them

5. kernel errors by booting

6. Join two files with join keys in reverse sort order on AIX

7. Linux Print Server

8. Ho to log access_log to split file and based on split per-virtual-host !

9. Zsh join/split array/work, not in faq

10. how to join up a partition that was split using fips

11. (patch for Bash) split/join (regex, string, CSV)

12. Matrox Mystique ands X.