Is there a \"canonical\" way of doing that? I\'ve been using head -n | tail -1 which does the trick, but I\'ve been wondering if there\'s a Bash tool that speci
head -n | tail -1
You may also used sed print and quit:
sed -n '10{p;q;}' file # print line 10