How do you remove the nth line in Unix?

How do you remove the nth line in Unix?
Answer
To Remove the lines from the source file itself, use
the -i option with sed command. If you dont wish to delete the lines from the original source file you can redirect the output of the sed command to another file.
 

Tìm kiếm

Back
Top