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.


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
Get step-by-step solutions from verified subject matter experts
