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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!