Question: Write a simple program called sum.sh that takes two integer arguments and adds the two integer arguments and then produces the output as the sum

Write a simple program called sum.sh that takes two integer arguments and adds the two integer arguments and then produces the output as the sum of the two integers?

What does grep [A-Z] list command means?

Prints lines from list containing a capital letter.

Prints lines from list containing non-capital letter.

Prints lines from list containing alphabetic character.

Prints lines from list containing non-alphabetic character.

5 points

QUESTION 2

What does the command grep 'UNIX' * do?

List a character pattern that matches the word UNIX on the first file only.

Display the word UNIX and search all files in the current directory and sub-directory.

Find the word UNIX in all files in the current directory.

Find the word UNIX in the current directory including sub-directories.

5 points

QUESTION 3

Which command lists of all the users currently logged in to the system and saves it to a file?

wc l < users

who > users

who < users

who | wc l

5 points

QUESTION 4

Given: $ cat file1 This is in file1. $cat file2 This is in file2. What does cat file1 > file2 mean?

Replace content of file1 with file2.

Remove file1 and create file2.

Cut the contents of file1 and append it in file2.

Replace content of file2 with file1.

5 points

QUESTION 5

Given: $ cat file1 This is in file1. $cat file2 This is in file2. What does cat file1 >> file2 mean?

Append contents of file2 to file1.

Remove file1 and append its content to file2.

Append contents of file1 to file2.

Cut the contents of file1 and append it in file2.

5 points

QUESTION 6

Write a simple program called sum.sh that takes two integer arguments and adds the two integer arguments and then produces the output as the sum of the two integers? Examples: $sum.sh 10 20 30 $sum.sh 100 200 300

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!