aboutsummaryrefslogtreecommitdiff
path: root/bin/bl.sh
blob: 6dd3d687ec852793168be0d2273c78d9b57b8546 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# 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