I am working with a very large (~11GB) text file on a Linux system. I am running it through a program which is checking the file for errors. Once an error is found, I need
@OP, if you can use awk, eg assuming line number is 10
$ awk 'NR!=10' file > newfile