Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a BASH script that will take 2 numbers as command line arguments (given at execution in the terminal) and prints all the numbers in
Write a BASH script that will take 2 numbers as command line arguments (given at execution in the terminal) and prints all the numbers in between them regardless of which argument is larger. i.e. it will compare the arguments and arrange them to create a range if needed.* Re-write the previous script such that it prompts the user to enter 2 values rather than taking them as command line arguments. Store the values in an array and use them from the array indices. Write a BASH script that will prompt the user to enter a file name and a directory name. Create a file with the prompted name and enter all numbers 0-100 in it. Then create a directory of the prompted directory name and move the file into that directory
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started