Parent directory

getline

105 bytes
1# vim: ft=zsh
2# Get nth line in a file
3
4if [ -z ${2+x} ]; then
5	sed -n ${1}p
6else
7	sed -n ${1}p ${2}
8fi
9