for f in *
do
  echo "Processing: $f"
done | tee log

echo "Done. Last processed was $f."