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 |
How to set an array in linux?
How to group the commands in shell scripting?
Hi All, Is it possible to create one file name only space or space in file name in UNIX and we can able to run that on Unix?
There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.
What are the Different types of shells?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is a shell environment?
What is awk in shell script?
What is the use of "test" command?
What does $# stand for?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is a shell? · Types of shell · what is shell scripting?