How to read two files simultaneously in linux
Closed
                    
        
                    iswaryasenthilkumar
    
        
                    Posts
            
                
            1
                
                            Registration date
            Thursday January 22, 2015
                            Status
            Member
                            Last seen
            January 22, 2015
            
                -
                            Jan 22, 2015 at 07:05 AM
                        
navigatorsystemindia Posts 3 Registration date Wednesday February 25, 2015 Status Member Last seen March 24, 2015 - Mar 23, 2015 at 12:11 AM
        navigatorsystemindia Posts 3 Registration date Wednesday February 25, 2015 Status Member Last seen March 24, 2015 - Mar 23, 2015 at 12:11 AM
        Related:         
- Bash read two files line by line
 - Read newspaper on kindle paperwhite - Guide
 - Bash read file line by line for loop - Guide
 - Ps3 won't read disc - Guide
 - Thunderbird read receipt - Guide
 - Can jpg files have viruses - Guide
 
1 response
                
        
                    navigatorsystemindia
    
        
                    Posts
            
                
            3
                
                            Registration date
            Wednesday February 25, 2015
                            Status
            Member
                            Last seen
            March 24, 2015
            
            
                    1
    
    
                    
Mar 23, 2015 at 12:11 AM
    Mar 23, 2015 at 12:11 AM
                        
                    If you want to read two files, then you can use the following command:
# cat file1 file2
If you want to compare two file then, use:
# cmp file1 file2
If you want to check the difference then use:
# diff file1 file2
            # cat file1 file2
If you want to compare two file then, use:
# cmp file1 file2
If you want to check the difference then use:
# diff file1 file2