what is the difference between cmp and diff commands
Answers were Sorted based on User's Feedback
Answer / supreetha
cmp--> shows the first difference in the files
diff--> shows all the differences in the files
Is This Answer Correct ? | 17 Yes | 4 No |
Answer / srikanth
cmp - It will compare files byte by byte
Ex: cmp text text1
text text1 differ: byte 2, line 1
diff - It will compare files line by line
If there are any differences in the file. Then it will print
to stdout along with all lines
Is This Answer Correct ? | 13 Yes | 0 No |
what is the difference between cmp and diff commands
What is @echo off?
There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A
How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.
Explain about sourcing commands?
What is $1 in shell scripting?
What is in a script?
When should shell programming/scripting not be used?
What is .sh file in mac?
How do I start a shell script?
What is the lifespan of a variable inside a shell script?
Is shell scripting easy to learn?