Help: how do you split a file and merge them afterwards?

Help: how do you split a file and merge them afterwards?

Post by Yue-hong Zhe » Fri, 10 Jan 1997 04:00:00



Thanks for your help.

 
 
 

Help: how do you split a file and merge them afterwards?

Post by Steve Morr » Sat, 11 Jan 1997 04:00:00




Quote:

> Thanks for your help.

split filename

put it all back together with cat

Hope this helps

Steve

 
 
 

Help: how do you split a file and merge them afterwards?

Post by F. Lope » Sat, 11 Jan 1997 04:00:00


I think that we need more information about the file to split.

You can split a file with the command split , with differents options, by
strings, by lines, etc. You can merge with cat file1 file2 ... >newfile



Quote:

> Thanks for your help.

 
 
 

Help: how do you split a file and merge them afterwards?

Post by B.A.McCau.. » Sat, 11 Jan 1997 04:00:00


The command to split files is called "split".  Which is fairly obvious
by Unix standards.

The command to join them is one of the first half dozen commands every
Unix user learns.  They always say "Why has it got such a silly name?"
and their local guru says "Oh, that's because it can be used to join
(catenate) files together".

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/

 
 
 

Help: how do you split a file and merge them afterwards?

Post by Coen Engelbart » Sat, 11 Jan 1997 04:00:00


Oh yes, how to merge the files:
If you split the file into 50-line segments like this:
    split -l50 filename section

you merge them with
    cat section* > filename

Make sure that that the 'section*' does not math any other files!

Hope this helps,
--

CMG Telecommunications & Utilities B.V.
Division Advanced Technology
P.O.Box 8038                               Phone: +31 30 23 39 300
3503 RA Utrecht                              Fax: +31 30 23 39 495
The Netherlands

 
 
 

Help: how do you split a file and merge them afterwards?

Post by Coen Engelbart » Sat, 11 Jan 1997 04:00:00


man split
man csplit
You may also want to use 'head' or 'tail'.

All these commands works on text files only.
I think that the best/only way to split binaries is to uuencode them
first:
    man uuencode
    man uudecode

BTW: This kind of stuff is sometimes very easy to find with 'apropos',
e.g.:
    apropos split
I often use
    apropos keyword|grep -v X
to ignore the huge amount of X windows stuff that often comes up.

Hope this helps
--

CMG Telecommunications & Utilities B.V.
Division Advanced Technology
P.O.Box 8038                               Phone: +31 30 23 39 300
3503 RA Utrecht                              Fax: +31 30 23 39 495
The Netherlands

 
 
 

Help: how do you split a file and merge them afterwards?

Post by roo » Mon, 13 Jan 1997 04:00:00


Some people prefer 'dd' over 'split'

Taufiq Habib

--------------------------------------------------------------------------



>The command to split files is called "split".  Which is fairly obvious

.......
 
 
 

1. Rhymes and reasons for DOS Merge mapped filenames for UNIX files

I am a technical writer faced with explaining a concept that, from my
experience, seems to have not much  rhyme or reason.

DOS Merge on the IBM PS/2 running AIX maps file names to names that are
acceptable by DOS rules.  These mapped names conform to several rules, one
of which states that files having the same names but in different directories
will have different mapped names.  

Does this mean that if 10 different users create a file with the same name
in their home directories, the results will be 10 different mapped names?  

In my experience with DOS Merge under AIX PS/2, if two different users
create a file with the same name the mapped names that result will be
different.  In fact, even when I created the same file twice, the
mapped file names were different.

Any insight to this problem would be greatly appreciated.  Thanks...

2. tripwire question

3. AIX 1.2, DOS-Merge, & > 32MB DOS Partition ??

4. Question on routing and LAN

5. Shared Libs: LIBPATH is not evaluated

6. Laplink to copy DOS files to Merge?

7. shell problem

8. How to split large DOS file for downloading thru dialup?

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

10. Help with splitting a text file to multiple files

11. Help:how do you split a large file into several small files and

12. Help with splitting a text file to multiple files !