Write a shell script to ask the user to enter ten numbers

Assignment Help Computer Engineering
Reference no: EM132213400

Write a shell script to ask the user to enter 10 numbers. Save these numbers in a file called numbers.

Note that you need to use the read command to get one number.

After you read each number you should save it in the file result (Will you use the redirection operator or append operator?).

Then in the same shell script echo that you will display all numbers now.

Then display the numbers. Then write a statement saying that you will sort the numbers now. Then show the sorted values.

Reference no: EM132213400

Questions Cloud

Write a section of code that could appear in a main function : Write code to "Toss the coin" the requested number of times. You must call the function you wrote.
Find the first three positions of the string and in a string : Write a series of assignment statements (complete executable code) that find the first three positions of the string "and" in a string variable sentence.
Write a script that will take a vector as an input : Write a script that will take a vector as an input (the vector can be any size). Using a for loop, you must re-arrange the values of the vector.
Write your own simple shell : Write your own simple shell. Your shell should prompt the user for a command, run it, then prompt the user for their next command.
Write a shell script to ask the user to enter ten numbers : Write a shell script to ask the user to enter 10 numbers. Save these numbers in a file called numbers.
Find a creative way to use the word they entered : Ask for three pieces of information, and find a creative way to use the word they entered in a response back to them.
Write a short python program to generate a random point : Write a short Python program to generate a random point (x, y) uniformly distributed over an area of a circle with radius 1.
Write a shell script program that contains a function : This function can list all files of a particular type in the current directory and then copy them to a new director called MyFiles.
Write a short program that will prompt the user for a number : Write a short program that will Print out whether the number is a perfect square (the product of two equal integers)

Reviews

Write a Review

Computer Engineering Questions & Answers

  What does this mean for the manner in which the federal

Does fighting these new concerns represent a significant challenge for maintaining the political values ensconced within the Constitution?

  Describe a recent high-profile computer security

define a recent high-profile computer security issue that you have heard of or read about. According to basic network security principles, how might the issue have been avoided? Provide at least one resource.

  Discuss the challenges that incident handlers face

Discuss the challenges that incident handlers face in identifying incidents when resources have been moved to a cloud environment.

  For this assignment you will use your proposed solution as

for this assignment you will use your proposed solution as revised following grading and input from your professor

  Why do you think company chose that computing environment

Using the Web, locate a system that runs in a client-server environment. On the basis of your reading, why do you think the company chose that computing environment?

  Decribe the functions of a network node manager

Explain the processes that take place during network discovery and mapping.

  Explain why is normalization essential in floating-point

use apa format to answer the following questionsq1. name five types of data that a computer can process.q2.

  Calculate the equilibrium temperature of the glass bulb

An incandescent light bulb is an inexpensive but highly inefficient device that converts electrical energy into light.

  Show how to augment the model to build a model

Show how to augment the model to build a model P(X,Y| ?, ?') = P(X|?)P(Y| X, ?') so that it satisfies the missing at random assumption.

  How to maintain inventory data on resources stored

give an eLibrary system where patrons can search a database to retrieve either the location of an actual resource in the library or an electronic copy of the source.

  How to protect your network to keep data safe

describe how to protect your network to keep data safe from loss or damage.

  Write a paper about importance of database driven websites

Write a Paper about Importance of database driven websites and its risks. Technologies that support websites, pros and cons. Technologies that support databases, pros and cons. Criticality of the interface, examples of best sites.

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