displaying files (on a UNIX command line), each file together with its names

displays each file with its name before its content:
$ head -999 file-a file-b file-c

displays each file with its name before each line of its content:
$ pipegrep ” cat file-a file-b file-c

Search the web for pipegrep, if you are interested in it! It is written in one word.


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.