sed -n 10000,20000p initial_file.log > smaller.log and to print all the lines after a specific line number: sed -n '10000,$p'