#!/bin/bash
#basename replacement:
#---------------------
for NAME in $@
do
   # replaced: file=$(basename $NAME)
   file=${NAME##*/}
   echo $file
done
