Question: Please code with linux. 1. Create a bash script called sorting-party. The script should have the following features: Takes an argument of a filename. (1

Please code with linux.

Please code with linux. 1. Create a bash script called sorting-party. The

script should have the following features: Takes an argument of a filename.

1. Create a bash script called sorting-party. The script should have the following features: Takes an argument of a filename. (1 pt) Sorts the contents of the file stored in the argument using the sort command. Outputs the sorted data to a file called sorted.txt (1 pt) Hint: To run your script you may need / want to play with the file permissions. Resources: 1. Add an if statement to your script that checks if the file in the argument ends in .txt (2 pts) If the file does not end in .txt your script should exit with an error message: File format not allowed Resources

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!