1. Compare the content of the files /opt/mydoc/resources/file_b.txt and /opt/ mydoc/resources/file_2.txt, ignoring case in your comparison. Redirect the output from your comparison to the file /opt/mydoc/answers/result_file.txt, which has already been created 2. Compare all files in directory /opt/mydoc/resources/compare_dir, one file will be different. Write the absolute path of the different file to the output file /opt/mydoc/answers/different_file.txt, which already exists 3. Two directories of files are present - /opt/mydoc/resources/compare_a and /opt/mydoc/resources/compare_2. Write a list of filenames only (do not include the path) of files that are only present in /opt/mydoc/resources/compare_a, one per line, to the output file
Task
Perform the following file comparisons within the file system.
1. Compare the content of the files /opt/mydoc/resources/file_b.txt and /opt/ mydoc/resources/file_2.txt, ignoring case in your comparison. Redirect the output from your comparison to the file /opt/mydoc/answers/result_file.txt, which has already been created
2. Compare all files in directory /opt/mydoc/resources/compare_dir, one file will be different. Write the absolute path of the different file to the output file /opt/mydoc/answers/different_file.txt, which already exists
3. Two directories of files are present - /opt/mydoc/resources/compare_a and /opt/mydoc/resources/compare_2. Write a list of filenames only (do not include the path) of files that are only present in /opt/mydoc/resources/compare_a, one per line, to the output file
Please give proper explanation and typed answer only.
Step by step
Solved in 3 steps