Question: Unix Write a script called positional.sh that would accomplish the tasks below: a. Set the positional parameters to be the output of the date b.

Unix

Write a script called positional.sh that would accomplish the tasks below:

a. Set the positional parameters to be the output of the date b. Display the list of positional parameters c. Display a message in the format ##today is , the th of . ## Example: Today is Tuesday, the 17th of Mar 2015 d. Set the positional parameters to be the long list of your current directory e. Display the contents of the 15th parameter f. Find out from the file whodb ff. who was logged into the system at 7am on 2015-03-17 fg. displays the login info for the user samuel.

Your script must accept the file whodb as argument

##############################################

I have this so far

#script="./postitional.sh" #!/bin/sh #Purpose: This Script is used to set positional parameters.

echo $1 echo "today is WEEKDAY, the DAYth of YEAR" | sed 's/WEEKDAY/'$1'/g' | sed 's/DAY/'$2'/g' | sed 's/YEAR/'$3'/g'

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!