sed: To print one line of text

sed -n "${INDEX}p" filename
(where INDEX is the line #)