1 2 3 4 5 6 7 8 9 10
#!/bin/sh # r -- select line range test $# -ne 2 && { echo "usage: $0 start end" 1>&2; exit 1; } start=`absln $1` end=`absln $2` sed -n "$start,${end}p"