Part 1: Write a single shell script hello.sh which can finish the list of tasks as below: 1. Greet user. E.g. Welcome to computer science society. 2. Contain a comment section with your name, and email address. 3. Print a menu as below Choose the item you want to buy? A. Apple Price: $1 per each B. Banana Price: $0.5 per each C. Orange Price: $0.8 per each 4. Print the date (MM/DD/YYYY) after message "Purch

Respuesta :

Answer:

Code explained below

Explanation:

below I have written the shell script as per the requirement.

Please note that the below script has been executed under bash shell in Ubuntu 16.04 system.

----------------------------------------------------------------------------------------------------------------------------------------

Script:

----------------------------------------------------------------------------------------------------------------------------------------

#!/bin.bash

#step 1

echo "Welcome to computer science society."

#step 2

#John Doe

#xxxxx@xxx.com

#step 3

echo "Date is = `date`"

#step 4

echo */ | wc

#step 5

echo $PATH

echo $USER

echo $SHELL

#step 6

echo "Printing disk usage"

echo "`df`"

#step 7

echo "Could you laon me "$"25.00?"

#step 8

echo "if x =2, x*x = 4, x/2 = 1"

#step 9

echo "`ls *.sh | grep c`"

#step 10

echo "Good Bye"

echo "Current Hour = `date +"%H"`"

#end of the script

------------------------------------------------------------------------------------------------------------------------------------------

RELAXING NOICE
Relax