Question: Find information on how to pass arguments to a shell script. Write a shell script named CreateDir.sh that takes a directory name as an argument,

  1. Find information on how to pass arguments to a shell script. Write a shell script named CreateDir.sh that takes a directory name as an argument, and creates it within the current directory. The shell script should use command mkdir internally
  2. Find information on how to use command echo to print messages to the terminal. Write a shell script named ShowDate.sh that outputs a message like this, using commands echo and date: The current date is Sun Feb 7 12:37:22 EST 2016

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Passing arguments to a shell script and using commands like mkdir echo and date are common tasks in ... View full answer

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 Operating System Questions!