How do you delete a line in a shell script?

Nguyễn Trà

New member
How do you delete a line in a shell script?
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