command to display different lines that are found when
compare two files?
Answer Posted / prakash singh syan
diff file1 file2
Above command will display all the lines which r diff in
file1 & file2 whereas, cmp will only display 1st occurance
of difference.
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What is unix and shell scripting?
What are special characters in unix?
Differentiate swapping and paging.
How to calculate the number of words in a file?
Is unix an operating system?
What is file structure in unix?
How to get the nth word of a line in Unix?
Can you explain the method of changing file access permission?
Which language unix is written?
How to move files from one directory to other in unix?
What are the four components of the unix file system?
How is unix different from other operating system?
What unix means?
Is unix a language?
What uses unix?