# sh exercisecat.shell listfile for f in $(cat $1);do printf -- "---- $(basename $f) ----\r\n"; cat $f printf "\r\n" done