aboutsummaryrefslogtreecommitdiff
path: root/bin/bl
blob: b18313871d5227ffe20fd6832012c082c63985d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Generate blank lines
if [ "$#" -ne 1 ] || [ "$1" -lt 0 ] ; then
    printf >&2 'bl: Non-negative line count needed as sole argument\n'
    exit 2
fi
n=0
while [ "$n" -lt "${1:-0}" ] ; do
    printf '\n'
    n=$((n+1))
done