How do I print a specific line 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. !