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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started