Question: (a) Write a shell script to merge and sort the content of TWO (2) text files provided by the user. The content will be sorted
(a) Write a shell script to merge and sort the content of TWO (2) text files provided by the user. The content will be sorted in ascending order before being redirected to a new file. Prompt the user to provide the names of the text files to read and the name of the new file to write the output. The new empty output file will be created based on the file name given by the user. Next, append the name and the total number of words of this new file with the appropriate labels at the end of this new file itself. Finally, prompt the user to decide if the two input text files need to be deleted before ending the script.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
