• Zach Pfeffer

Print the name of a file and the file's contents


This post lists a Linux command that will print the name of a file and then print the contents of that file.

The following command will print the name of the file and the files contents:

find . -type f -print -exec cat '{}' \;

References

  • Find man page @ link

  • GNU image from link

Our Recent Posts

Tags

SEARCH THIS SITE

©2020 by Zach Pfeffer