#!/bin/sh
if [ -z "$1" ]
then
   echo usage:  ren '<*files*>'
else
   for FILENAME in "$@" ;
   do
      REN="$(dialog --stdout --inputbox "rename $FILENAME to:" 7 60 "$FILENAME")"
      if [ ! -z "$REN" ] ; then
         mv "$FILENAME" "$REN"
      fi
   done
fi