Question: Problem - 1 : ( 1 . 5 points ) Write a Bash script that performs the following steps: 1 . Prompt the user to
Problem : points
Write a Bash script that performs the following steps:
Prompt the user to input a filename if no filenam
e is provided, display error message
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.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
