How do you print a specific line in Unix using SED?

Trương Duy

New member
How do you print a specific line in Unix using SED?
Answer
In this article of sed series, we will see how to print a particular line using the print(p) command of sed. Similarly, to print a particular line,
put the line number before ‘p’. $ indicates the last line.
 

Tìm kiếm

Back
Top