Problem

In this project, you gain further experience in writing a very simple shell script using...

In this project, you gain further experience in writing a very simple shell script using sequential logic. In these steps, you create the shell script, seqtotal.

To demonstrate sequential logic:

1. Type vi seqtotal and press Enter.

2. Type i to switch to vi’s insert mode.

3. Type the following lines:

let a=1

let b=2

let c=3

let total=a+b+c

echo $total

4. Press Esc to switch to vi’s command mode.

5. Type :x and press Enter to save the file and exit vi.

6. Next test the new shell script, seqtotal. (To save a few keystrokes, use the sh command instead of the chmod command.) Type sh seqtotal and press Enter.

You see the output of the script, which is 6.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search