I've come across this solution for printing a specific line from a text file:
sed '123!d;q' file
Why doesn't sed quit after the first line of input in this case?
|
I've come across this solution for printing a specific line from a text file:
Why doesn't sed quit after the first line of input in this case? |
|||
|
|
|
In English, this
Or if you prefer, in shell syntax:
|
|||||||||||
|