#!/bin/sh case $1 in "")echo "usage: logstrokes [file to log to]"; exit 1;; -*) shift;; esac case $1 in /.*) logfile="$1";; *) logfile="`pwd`/$1";; esac echo "logging to $logfile" touch $logfile chmod 755 $logfile while : do echo -n "[`pwd`]# " read args echo "$args" >>$logfile $args done