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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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