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 significance of $#?
What is the difference between grep and egrep?
Is shell a scripting language?
How do I open the shell prompt?
How to debug the problems encountered in the shell script/program?
Explore about environment variables?
In a single command how do you run the previous command in the command prompt.
How can the contents of a file inside jar be read without extracting in a shell script?
how to find weblogic version through linux cammand
What are the different kinds of loops available in shell script?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
how did u debugging in unix/ linux platform ??( project Related)