LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2006, 03:47 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
How to put back a split file


Hi

How to put back 1G file splited in 10M chunks using split command

Regards

Asanka
 
Old 07-31-2006, 04:09 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
cat
cat a1 a2 a3 a4 >a.full
if chunks are xaa xab ..., you can
cat x?? >complete
check not to have other x?? files in the directory!!
 
Old 07-31-2006, 05:18 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hay raskin

This is a oracle database export it si about 1.8 I made the split. Will cat work on files like this

Regards
Asanka
 
Old 07-31-2006, 06:21 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
cat is probably designed for text files, but it may work on binary files too.
So, it depends on how the export is done (ascii dump? binary one?).

Anyhow, "dd" can help you re-assemble binary files.
 
Old 07-31-2006, 07:42 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
cat is designed to join files. It has some text-only options, but it works all right on all kinds of regular files. dd cannot join without manually setting all offsets.
 
Old 07-31-2006, 09:30 PM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hay guys thanks


best regards

Asanka
 
Old 07-31-2006, 11:02 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
For the record: if 'split' was used, 'cat' will rejoin. (Assuming GNU versions)
 
Old 07-31-2006, 11:18 PM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
if hd space is critical, you can also try:
Code:
for a in <filelist>; do
    cat $a >> join
    rm $a
done
 
Old 08-16-2006, 03:58 AM   #9
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
thank a lot

regards

Asanka
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to split file , .. awk or split ERBRMN Linux - General 9 08-15-2006 12:02 AM
Uninstalled too many packages, but don't know what to put back qscomputing Linux - General 2 03-31-2006 09:54 PM
cant figure out how to put my wifi icon back? blackspade Linux - Software 0 01-23-2006 12:22 AM
How do you get back into Ubuntu if you don't put Grub on the MBR? Marrea Ubuntu 7 07-21-2005 06:27 AM
Reduce memory to install? Put back after? What? pvdl Linux - Hardware 5 10-15-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration