How to move first N bytes from text file to another text file
问题 I've got an extreme problem, and all of the solutions I can imagine are complicated. According to my UNIX/Linux experience there must be an easy way. I want to delete the first n bytes of file in log.txt.file is long enough. Well, I'm sure somebody will deliver me a suprisingly easy solution I just can't imagine. 回答1: I am not sure what you want: Your headline says move first N byte to another file, your text says you want to delete the first N bytes tail -c +N log.txt Will output everything