1.

How can we skip some initial bytes from both the files to be compared?(a) using -b option(b) using -n option(c) using -l option(d) using -i optionI have been asked this question during an online exam.Query is from Comparing Files:comm, cmp and diff Command topic in portion Handling Ordinary Files of Unix

Answer»

Right CHOICE is (d) using -i option

To elaborate: We can skip the number of initial bytes to be compared from both the FILES such that the CMP command will not consider that number of bytes while comparing both files. For this FACILITY, we use -i option followed by the number of bytes to be skipped. For example, to skip the first 10 bytes use the FOLLOWING command,



Discussion

No Comment Found

Related InterviewSolutions