Question: Write a shell script, motd.sh, that accepts two command-line arguments: a message to print, and the number of times to print it. The script should

 Write a shell script, motd.sh, that accepts two command-line arguments: a

Write a shell script, motd.sh, that accepts two command-line arguments: a message to print, and the number of times to print it. The script should print the message that many times, surrounded by a box of stars. For example, if the script is run in the following way smotd.sh "Always remember you're unique, just like everyone else" 5 then the script should produce the following output: * Always remember you're unique, just like everyone else * * Always remember you're unique, just like everyone else* * Always remember you're unique, just like everyone else * Always remember you're unique, just like everyone else * * Always remember you're unique, just like everyone else *

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!