Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions