#!/bin/sh ################################################################# # # @(#) [23456789].sh (c) Jan 2022 by H. Zuleger HZNET # # print lines in 2, 3, 4, 5, 6, 7, 8, 9 columns # ################################################################# PATH=/bin:/usr/bin prog=`basename $0` install() { for new in 2 3 4 5 6 7 8 9 10 11 12 do test $new = $prog && continue ln $prog $new done exit } usage() { test -n "$1" && echo "$1" 1>&2 echo "usage: $prog [...]" 1>&2 exit 1 } test "$1" = "install-script" && install test -n "$COLUMNS" && wide="-w $COLUMNS" exec pr -l1 $wide -$prog "$@"