#!/bin/sh

expr="$(dirname $1)"'/*'"$(basename $1)"'*.tee'
ls $expr
if test "$2" = "-yes"
then
  echo >/dev/null
else
  echo 'ok ?  (y/n)'
  read eingabe
  if test "$eingabe" = "y" -o "$eingabe" = "Y" -o \
          "$eingabe" = "j" -o "$eingabe" = "J" -o \
          "$eingabe" = "1" -o "$eingabe" = ""
  then
   echo >/dev/null
  else
   exit 0
  fi
fi

if test -n "$3"
then
  if test -f "$1"
  then
    set -x
    cp "$1" "$3"/_cmb_"$1"
  else
    set -x
  fi
fi
cat $expr | uudecode -o "$1"
