Shift bytes of file in bash
How can I shift some bytes of a file in bash? What I want to do is make a file corrupt to check t开发者_开发问答hat my program will handle corrupt files correctly.
Thanks!
To shift by, say, 3 bytes "left" and discard the shifted bytes:
$ tail -c +3 file > file.shifted
精彩评论