summaryrefslogtreecommitdiff
path: root/bin/slt/r
blob: 5d2c184cb62fdbcd9fb4ccedb5c76a107148cb77 (plain)
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"