what is the difference between cmp and diff commands
Answer Posted / 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 |
Post New Answer View All Answers
How do you find out What is your shell?
What is k shell?
What is shell and shell script?
is this growing field and what is average package in this?
What is echo $shell?
What is the use of .sh file?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
How will you find the 99th line of a file using only tail and head command?
How to get the first line from a file using just the terminal?
What are the two files of crontab command?
What is wc in shell script?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is shift command in shell script?
What are script files?
What is bash shell command?