Display content of files with filenames

  • Post by Mike Dixson
  • Mar 11, 2017
post-thumb

Use the following linux command to display the contents of several files with their filenames prefixed.

tail -n +1 file1.txt file2.txt file3.txt

Displays as

<span class="s1">==> file1.txt <==</span>

File 1 contents

==> file2.txt <==

File 3 contents

==> file3.txt <==

File 3 contents

Computer Vectors by Vecteezy

LATEST POST
  • Post By Mike Dixson
  • Nov 17, 2020
Using MFA for Sudo Only
  • Post By Mike Dixson
  • Jul 25, 2020
Fixed: Obelisk not working in Ableton Live
  • Post By Mike Dixson
  • Jun 15, 2020
BYOBU files being flagged by rkhunter
TAG