#!/usr/bin/sh PROG=$0 while true do read X echo "Prog: ${PROG} Args: $@ \c" echo "Output: ${X}" done