1220747Snwhitehorn#!/bin/sh 2220747Snwhitehorn# $Id: shortlist,v 1.2 2011/03/02 00:11:50 tom Exp $ 3220747Snwhitehorn# make a short listing, which writes to both stdout and stderr. 4220747Snwhitehorn 5220747Snwhitehornif test $# != 0 6220747Snwhitehornthen 7220747Snwhitehorn count=$1 8220747Snwhitehornelse 9220747Snwhitehorn count=10 10220747Snwhitehornfi 11220747Snwhitehorn 12220747Snwhitehornwhile test $count != 0 13220747Snwhitehorndo 14220747Snwhitehorn echo "** $count -- `date`" 15220747Snwhitehorn w >&2 16220747Snwhitehorn sleep 1 17220747Snwhitehorn count=`expr $count - 1 2>/dev/null` 18220747Snwhitehorn test -z "$count" && count=0 19220747Snwhitehorndone 20