Given a number print that line number from a file in Bash
function getl() {
if [ "$1" -a "$2" ]
then
tail -n+"$1" "$2" | head -n1
else
echo "Usage: getl
fi
}
as found on: http://stackoverflow.com/questions/6022384/bash-tool-to-get-nth-line-from-a-file