I want to print the filenames and contents for each file in order. I tried this ls -1 after* | (echo;cat)
- This only lists the files, does not cat the contents of the files.
I also tried
ls -1 after* | (echo; xargs cat)
- This only cats the contents, does not echo their paths. I would like to see something like
filename1
filename1_contents
filename2
filename2_contents