add netbsd nl(1)
[rofl0r-hardcore-utils.git] / last.sh
blobf242d86c091511eae07b8310e5a09cf339461950
1 #!/bin/sh
2 # print the (N th) latest file name
3 no="$1"
4 test -z "$no" && no=1
5 ls -1 -t | head -n $no | tail -n 1