Question: linux/ubuntu #1Read in a positional argument and store it in a variable named FILE. #2Create an if branch that checks to see if FILE points

linux/ubuntu

#1Read in a positional argument and store it in a variable named FILE.

#2Create an if branch that checks to see if FILE points to a file that exists or not. If the file exists, have the script print out the message "[FILE] exists!" where [FILE] is filled in with the actual filepath. If the file does not exist, have the script print out the message "[FILE] does not exist!]" where [FILE] is filled in with the actual filepath.

#3Create a loop that reads in the file that was passed in and stored as FILE and print each line one at a time to stdout.

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!