Linux, delete first N lines from a file

Sometimes it can be important to delete first N lines from a file. For example, to delete first 59 lines in content of file “old_file” and write result to “new_file”:

sed '1,59d' old_file > new_file;
sources of information
source visit date
delete-first-100-lines-file 2015.02.15

Leave a Reply

Your email address will not be published. Required fields are marked *