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 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
Get step-by-step solutions from verified subject matter experts
