Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this task, you will create a script called positional.sh that accepts the output of the date command and performs some formatting. Example solution; cjingers@general:~$

In this task, you will create a script called positional.sh that accepts the output of the date command and performs some formatting.

Example solution;

cjingers@general:~$ ./positional.sh `date` Fri Jan 11 14:15:00 DST 2019 Today is Friday, the 11 of January 2019
  1. The positional parameters of your command are populated with the date command as shown in the example
  2. Display a list of the parameters
  3. Display the message; Today is , the of as shown in the example above

The below code is not working even though it is showing up multiple places on this site.

for arg in $*

do

echo $arg

done

args=$*

echo "Today is $1, the $3 of $2 $6"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions