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

  Creating PHP script that creates uses and manipulates arrays

Lab - PHP: Arrays, Functions and Form processing. This exercise will walk through creating a PHP script that creates, uses and manipulates arrays

  Design the sr flip-flop

From the following reduced state table, derive a minimum circuit.

  Write a paper on the ethical dilemma you might face

Write a 3 pages paper on the ethical issues/dilemma you might face in interacting with customers and project team, talk about how you understand ethical in computer science area.

  Create an array of doubles and somehow put values into it

Display the array before sortingcall sort to sort the arraycall show to display the array after sortingFor this program.

  Questionconsider a very simple symmetric block encryption

questionconsider a very simple symmetric block encryption algorithm in which 32-bits blocks of plaintext are encrypted

  A word document with another office-type document

A compound document within Microsoft Office usually consists of a Word document with another office-type document (i.e. Excel, PowerPoint slideshow, etc.) within the Word document.

  Prove that a ternary tree of height h has at most

A ternary tree is either empty or consists of a node called the root and three ternary trees (called the left, middle, and right subtrees).

  Type of structure-frame structure system

There are different types of frame system which are having combination beams(which is called horizontal element) , column (which is called vertical element)  and slab to hold the lateral and gravity, types of frame structure:-

  Write a java program that uses a two-dimensional array

Write a java program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year.

  Select a current computer-crime trendwrite a 1400- to

select a current computer-crime trend.write a 1400- to 1750-word paper that describes a cybercrime trend that society

  Display all of the values in a table

Prompt the user for a string, and display the corresponding number. For example, if the user types "five", the program would output.

  Examine recursive function computation of fibonacci numbers

Examine the recursive function computation of Fibonacci numbers. Note that each Fibonacci number is recomputed many times.

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