sed Get Specific Lines Of File Link to heading

Get nth line Link to heading

sed -n 5p file.md

Get line range Link to heading

sed -n '2p,4p' file.md