Create a bash script

Assignment Help Basic Computer Science
Reference no: EM132644234

Linux Programming for Admin Assignment topic: Passing command line arguments. Provide the scripts as it would appear in the linux terminal.

A.Create a bash script named args1.sh.

When executed, it write the following, to standard out.

./args1.sh Iowa California Nebraska
There were 3 arguments passed
All the arguments are Iowa California Nebraska
The number of characters in Iowa is 4
The number of characters in California is 10
The number of characters in Nebraska is 8
The first characters are I, C, and N.
Two characters starting at offset 0, for Iowa are "Io".
Four characters starting at offset 2, for California are "lifo".
Five characters starting at offset 3, for Nebraska "raska"

B.Create a bash script named args2.sh.

When executed, it write the following, to standard out.

Note that spaces have been added.
./args2.sh Iowa California Nebraska

The first characters are I, C, and N.

C.Create a bash script named args3.sh.

When executed, it writes the following, to standard out.

Note that what is passed, in now double quoted.
./args3.sh "Iowa California Nebraska"

The first characters are I, C, and N.

TODO_2 net1.sh


Create a bash script, named net1.sh, that writes only the network of the IP addresses passed.
Assume a subnet mask of 255.255.0.0

./net1.sh router 10.1.0.3 firewall 10.2.0.4
The router is on network 10.1
The firewall is on network 10.2

Reference no: EM132644234

Questions Cloud

Discuss the challenges faced by companies : Discuss the challenges faced by companies that have subsidiaries in foreign countries. Cultural differences can cause conflict resolution among international.
What is the purchase power parity : What is the Purchase Power Parity? What can Per Capita Income in Lagos buy considering their cost of living? What is Jamba Juice company's basis of pricing?
What is the limitation on the deductibility of business : What is the limitation on the deductibility of business interest expense? What happens to any business interest deduction disallowed under the limitation
How the organization in the video or article demonstrates : Explain how the organization in the video or article demonstrates corporate social responsibility. Explain HR's role in formulating corporate values.
Create a bash script : Linux Programming for Admin - Provide the scripts as it would appear in the linux terminal and Create a bash script named args1.sh
Describe the tax consequences of these gains and losses : Neither taxpayer had any other property transactions during the year. Describe the tax consequences of these gains and losses for John and for Eagle
What would be the best option for coke to pursue : Modify the product mix, outline why this approach would be successful given that Coke has already implemented many of these marketing tactics.
Demonstrate need for an evaluator within current workplace : This week you learned about the role of an evaluator and the steps necessary to become an evaluator. Based on your learning, do you feel you would make.
What tax rates are applicable to these capital gains : Jeanette, an individual in the 24% marginal tax bracket, recognized a $20,000 long-term capital gain. What tax rates are applicable to these capital gains

Reviews

len2644234

9/25/2020 10:28:08 PM

Linux Programming for Admin Assignment topic: Passing command line arguments. Provide the scripts as it would appear in the linux terminal.

Write a Review

Basic Computer Science Questions & Answers

  Why is it important to back up the dhcp database

Why is it important to back up the DHCP database and Identify key files that make up the DHCP database?

  Program to scan 2 integer numbers from user

Write a program to scan 2 integer numbers from user, then check for below conditions: a). If both the numbers are equal, print a message "Both numbers are equal".

  Unit integration and system testing

Create a testing plan that includes unit integration and system testing. Ensure the criteria is carefully documented. Explain the installation process and include guidelines for all concerned.

  Organizations are struggling to reduce

Organizations are struggling to reduce and right-size their information foot-print, using data governance techniques like data cleansing and de-duplication

  Introduction to networking course

You have just completed 10 weeks of an introduction to networking course. Imagine you have been asked to create a one-day training course that highlights the important elements of what you have just learned within the past ten (10) weeks.

  While-end repetition structure

Create your own unique While-End  repetition structure. You decide the theme. You should provide both the pseudocode and the flowchart of your example. Be sure to provide an overview of what your repetition structure is doing.Please keep the desig..

  Basic c programming in days

Would you help me by giving me some helpful tips about how to study basic C programming in days?

  Whether the player''s guess was correct

Display a message indicating whether the player's guess was correct, too high, or too low. (After you fi nish Chapter 4, you will be able to modify the application so that the user can continue to guess until thecorrect answer is entered.)

  How many block transfers are needed to reorganize the file

How many block transfers are needed to reorganize the file?

  Self-driving or driverless cars are quickly becoming reality

Self-driving or driverless cars are quickly becoming a reality. In the readings for Chapter 4, four advantages to driverless cars were presented.

  Which elements are the most important

Discuss the elements of a new employee orientation program. What should it include? Which elements are the most important? The least important? Why?

  Review and discuss methods for it managers to maintain

Review and discuss methods for IT managers to maintain their skills while gaining new managerial skills

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd