I have written a small bash program which needs to read a file with name input. I want the script to print the message file not found and exit or kill itself if it can’t find the file.
I have written a small bash program which needs to read a file with
Share
Just before reading, check if the file exists: