AMP AMP
AMP
0
AMP

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
a sample image
liam
asked May 20 2017

Answer

AMP
0
AMP

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
a sample image
jagannatharumugam
asked May 23 2017
edited Oct 05 2018
Post your Answer