1

I have 2 Binary Files FileA and FileC

Its is such that FileC = FileA + FileB using the cat utility

How do I subtract FileA from FileC to get FileB ?

2
  • You use cat for binary files? Jan 14, 2012 at 16:54
  • I use cat instead of using HJsplit or software like that .
    – Gautam
    Jan 14, 2012 at 16:58

1 Answer 1

3

Possible using the dd utility:

dd if=FileC of=FileB bs=1 skip=$(stat -c %s FileA)

See man dd for details.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .