Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • dd is the right tool for the job - looks like you came up with a nice, elegant solution to your problem. Commented Feb 3, 2011 at 19:50
  • I don't think it's really possible without copying unless filesystem provides direct support for removing bytes from start. Commented Dec 3, 2020 at 8:16
  • @Anssi Thanks - no, I wasn't trying to do this in-place without copying, I was just looking for an efficient way to do this at all. Commented Dec 3, 2020 at 9:21