LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-27-2006, 07:07 PM   #1
nerdful1
LQ Newbie
 
Registered: Jun 2005
Location: greater Portland Maine
Posts: 13

Rep: Reputation: 0
how does one use DD to recombine files from using pipe to split files originally?


I have read awesomemachine post and tutorial on using DD. Then there was an argument about recombining files using cat. Awesome said not to use cat, other poster said cat worked fine for him. I want to learn DD properly to recombine my split files using dd.
I used dd and piped to split to .gz files. Now I want to put them back together again.

Last edited by nerdful1; 03-27-2006 at 07:10 PM.
 
Old 03-27-2006, 10:19 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
dd does not combine or split files---apparently you used dd to generate a stream which you then split. (And then compressed?)
"cat" is used to merge files---why did someone say not to use it?

you can also append to a file using redirection, e.g.:
"cat file2 >> file1" appends the contents of file2 onto file1
 
Old 03-27-2006, 11:12 PM   #3
nerdful1
LQ Newbie
 
Registered: Jun 2005
Location: greater Portland Maine
Posts: 13

Original Poster
Rep: Reputation: 0
awesomemachine said not to use cat. Although I would use cat if it was the only way, now that I am using dd why not use dd to reverse the process? I'm sure cat would work, but I find myself sent on tangents in LINUX.
 
Old 03-28-2006, 07:46 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by nerdful1
awesomemachine said not to use cat. Although I would use cat if it was the only way, now that I am using dd why not use dd to reverse the process? I'm sure cat would work, but I find myself sent on tangents in LINUX.
I asked WHY he said "don't use cat"...

dd is not what split your files--it does not do that!!!! --- dd is a low-level read-write utility.
In general, you would not use a variant of the same command to "reverse the process". (There are exceptions)

I know 2 methods: cat and >> (append) You could also try a Google search using "combine files in Linux"---or some such...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dd question - split files Sn7 Linux - Software 5 08-30-2009 04:42 AM
rar or unrar to recombine files? shanenin Linux - Software 2 05-22-2005 11:01 AM
Help needed to split files 242VDM242 Linux - Newbie 10 04-07-2005 09:39 AM
how to split up audio files? SciYro Linux - General 3 10-27-2004 11:25 AM
dd question - split files Sn7 Linux - General 1 09-19-2004 10:15 AM


All times are GMT -5. The time now is 03:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration