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