I have 2 Binary Files FileA and FileC
FileA
FileC
Its is such that FileC = FileA + FileB using the cat utility
FileC = FileA + FileB
cat
How do I subtract FileA from FileC to get FileB ?
FileB
Possible using the dd utility:
dd
dd if=FileC of=FileB bs=1 skip=$(stat -c %s FileA)
See man dd for details.
man dd
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
1 year ago
viewed
62 times
active
catinstead of using HJsplit or software like that . – mataug Jan 14 '12 at 16:58