0

how to display the contents of two files in linux

I am having two files. Is there any tool or command to show both the contents aside at the same time?

Advanced commands Add a comment
liam
asked May 20 2017

Answer

0

You can use both diff as well as paste command to show the contents as aside.

Example:

 # diff file1 file2
  < hello file1
  ---
  > hello file2

Whereas for paste command it will display both aside in simpler way as follows.

 # paste file1 file2
  hello file1    hello file2
Add a comment
jagannatharumugam
asked May 22 2017
edited Oct 05 2018
Post your Answer