Write complete bash script that provides a menu to either double-space an input file or triple space an input file. Use the read command to obtainthe users choice and then perform the requested operation.For double spacing, the script will ask for an input file and then read eachline of the input file. For each line read, it then writes the line back toanother file, but with an extra blank line following. This has the effect ofdouble spacing the file. Include all necessary code to check if the readcommand gets the necessary filename, and whether the specified fileexists. If so, continue with the double spacing, if not state that the filenamewas blank or does not exist and end the script.For triple spacing, the script will ask for an input file and then read each lineof the input file. For each line read, it then writes the line back to anotherfile, but with two extra blank lines following. This has the effect of triplespacing the file. Include all necessary code to check if the read commandgets the necessary filename, and whether the specified file exists. If so,continue with the triple spacing, if not state that the filename was blank ordoes not exist and end the script. Use while loops, if statements and test file operators. (Usage: spacingFile.sh
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here