Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 bash 中移动文件的某些字节?我想要做的是使文件损坏以检查我的程序是否能正确处理损坏的文件。
谢谢!
例如,要“向左”移动 3 个字节并丢弃移位的字节:
$ tail -c +3 file > file.shifted