cat files with directory
Just as another idea, try tail -n +1 ./tmp/*.txt
==> file1.txt <==
<contents of file1.txt>
==> file2.txt <==
<contents of file2.txt>
==> file3.txt <==
<contents of file3.txt>
$ for file in ./tmp/*.txt; do echo "$file"; cat "$file"; done
-or-
$ find ./tmp -maxdepth 1 -name "*.txt" -print -exec cat "{}" \;
You could easily write a tiny script doing just that,
for f in "$@" do; echo "This is from $f"; cat -- "$f"; done