Question: Please edit my Linux BASH script so that when the terminal reads user input, it will create the file with the name read. --------------------------------------------------- MY
Please edit my Linux BASH script so that when the terminal reads user input, it will create the file with the name read.
---------------------------------------------------
MY CODE:
----------------------------------------------------

#! /bin/bash echo 'enter a file name read FILENAME echo "No input has been received, so no file will be created" exit 1 else touch F ILENAME echo "$FILENAME has been created.. fi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
