Question: Problem - 1 : ( 1 . 5 points ) Write a Bash script that performs the following steps: 1 . Prompt the user to

Problem -1: (1.5 points)
Write a Bash script that performs the following steps:
1. Prompt the user to input a filename (if no filenam
e is provided, display error message).
2. Checks if the file exists in the current directory. If the file does not exist, display a message indicating that the file is not found and exit the script.
3. If the file exists, display the last ten lines on the terminal.

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!