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?

liam
asked May 20, 2017
1 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
View More
jagannatharumugam
answered May 22, 2017
Your Answer
||||
 
100:0

Related News in how to display the contents of two files in linux

Related News in how to display the contents of two files in linux