Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1: For each of the following write a shell script that does the job. Save the file as firstnamelastnameX.sh. X is a number according

image text in transcribed
Question 1: For each of the following write a shell script that does the job. Save the file as firstnamelastnameX.sh. X is a number according to the numbering below 1. Write a shell script that print the current working directory using the PWD command. 2. Write a shell script that list all the files in the current working directory. Bonus point if you use a loop to print each file name in a separate line 3. Write a shell script that read two numbers from the user x and y and print a. x+x b. xy c. x/y Submit your scripts in a zipfolder (firstnameLastname.zip). Paste a screen shot for each execution from the terminal (paste the screen shots in this word documents) Question 2: This is your time to shinel Write your own shell script. The program should have a. At least 4 lines (colon won't countl) b. Should utilize a control structure (loop, condition, etc). c. Define variables. d. Optional: user input, argument passing and command execution Submit your code along with a screenshot of the script and the execution

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago