Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions