Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Unix/Linux Bash scripting Objective: To explore the basics of Bash scripting. Bash Shell Script Programming Assignment 1. A word file that contains the questions followed

Unix/Linux

Bash scripting

Objective: To explore the basics of Bash scripting.

Bash Shell Script Programming Assignment 1. A word file that contains the questions followed by the screen shots of the running state of the shell scripts you created for this assignment. Each set of screen shots should be followed by the code you used to develop the shell script. Do not zip this file. As mentioned, DO NOT delete the questions.

2. Use the zip command (zip r assignment2 sourcefiles) and upload your file assignment2.zip to the ecentennial Assignment 2 drop box.

Create a directory named sourcefiles in your home directory. Question 1.

Create a shell script file called q1.sh

Write a script that would accept the two strings from the console and would display a message stating whether the accepted strings are equal to each other.

Question 2.

Create a shell script file called q2.sh

Write a bash script that takes a list of files in the current directory and copies them as into a sub-directory named mycopies.

Question 3.

Create a shell script file called q3.sh

Write a Bash script that takes the side of a cube as a command line argument and displays the volume of the cube.

Question 4.

Create a shell script file called q4.sh

Write a Bash script that prompts you for two integers one after another, adds them, and displays the result. It continues to ask for numbers until the user decides to quit.

-----------------------------------------------------------------------------------------

Text and other Instructional/Learning MaterialsText Book(s):

Palmer, M. 2008. Guide to UNIX Using Linux, 4th Edition. Boston: Course Technology.

ISBN 10: 1418837237

ISBN 13: 9781418837235

Sobell, Mark G. A Practical Guide to Fedora and Red Hat Enterprise Linux. 7th Edition. Prentice-Hall, 2014.ISBN: 9780133477436ISBN: 0133477436

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

Step: 3

blur-text-image

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Describe legally required benefits.

Answered: 1 week ago