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 can also use Perl for this:
perl -wnl -e '$.== NUM && print && exit;' some.file