I have a large text file (~3GB). While creating it, I made a mistake and the first few (not all) characters of the first line only are wrong. The rest of the characters in the first line are correct. All the other lines are also correct. My, quite simple, question is:
How do I remove the first n characters of such a large file? I don't want to delete the whole first line, only the first n characters. My requirements are:
- Without replacing all the remaining lines.
- Without reading the whole file.
- Ideally, using unix shell commands.
I have tried sed, but this replaces the first line and copies all the rest... Maybe I could use the "quit" option? Of course, I could create the file again, without making that mistake...