LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-14-2004, 05:22 PM   #1
iftiuk
Member
 
Registered: Apr 2004
Location: Washington DC
Posts: 43

Rep: Reputation: 15
Concatenate binary file


Gurus,

How can I concatenate one binary file "One" into "Another" using cat command. Besides cat is there a better way?

Ifti
 
Old 07-14-2004, 06:57 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
What type of binary file are you refering to. If for example you have downloaded a video file that is split into numbered parts (e.g. vid.mpg.01 vid.mpg.02 ... vid.mpg.12), then use cat with wild cards:
cat vid.mpg.??? >vid.mpg
or
cat vid.mpg.[[:digit:]][[:digit:]][[:digit:]] >vid.mpg
will assemble the parts in the correct order.
 
Old 07-15-2004, 09:21 AM   #3
iftiuk
Member
 
Registered: Apr 2004
Location: Washington DC
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks it worked for me
 
Old 05-13-2005, 03:58 PM   #4
jfsalvarado
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by jschiwal
What type of binary file are you refering to. If for example you have downloaded a video file that is split into numbered parts (e.g. vid.mpg.01 vid.mpg.02 ... vid.mpg.12), then use cat with wild cards:
cat vid.mpg.??? >vid.mpg
or
cat vid.mpg.[[:digit:]][[:digit:]][[:digit:]] >vid.mpg
will assemble the parts in the correct order.


it does not work with archives WAV?

you could help me?
 
Old 05-13-2005, 05:13 PM   #5
iftiuk
Member
 
Registered: Apr 2004
Location: Washington DC
Posts: 43

Original Poster
Rep: Reputation: 15
Unfortunately no. I just used this command only once and that was it.
 
Old 05-13-2005, 07:52 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
You need to give us more information on the file-names and what type of archives they are. Some windows programs will add a .000 file. This file is not part of the original, so move it out of the present directory before using cat.
ls
file.wmv.000 file.wmv.001 file.wmv.002 file.wmv.003
rm file.wmv.000
cat file.wmv.[[:digit:]][[:digit:]][[:digit:]] >file.wmv
 
Old 05-16-2005, 09:11 AM   #7
iftiuk
Member
 
Registered: Apr 2004
Location: Washington DC
Posts: 43

Original Poster
Rep: Reputation: 15
You may get some answers at
http://www.linuxpakistan.net/forum/v...&unwatch=topic
too
 
  


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
What 's the different between text file and binary file? taureanyang General 3 07-25-2005 09:37 AM
Automatically tell text file from binary file? Hosiah Linux - Software 3 05-31-2005 06:22 AM
convert text file to binary excel file ust Linux - General 2 11-23-2004 03:33 AM
mounting a binary file thats not on any file system!?!!? aXoneX Linux - General 7 10-26-2004 03:21 AM
concatenate binary files???? justin19fl Linux - Newbie 6 05-14-2001 03:13 PM

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

All times are GMT -5. The time now is 01:57 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