Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, if you have two files test1.txt and test2.txt, what is best way to check for the differences in the two files (i.e. some way to see what lines are different, and how they are different)?
Answer
diff test1.txt test2.txt

Question
In linux, if you have two files test1.txt and test2.txt, what is best way to check for the differences in the two files (i.e. some way to see what lines are different, and how they are different)?
Answer
?

Question
In linux, if you have two files test1.txt and test2.txt, what is best way to check for the differences in the two files (i.e. some way to see what lines are different, and how they are different)?
Answer
diff test1.txt test2.txt
If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
ectory tree if there have been only a few small changes. You would want a list of alterations instead. The diff utility dumps the lines that differ between two files. It can be used as follows: <span>diff -u <old-file> <new-file> You can also use diff to see difference netween two directory trees. diff recursively compares all corresponding files: diff -u --recursive --new-fi

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.