Question

Task 2 Write a shell script program call cal3.sh to do the following. 1. Print the output you must provide at least one mont

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#!/bin/bash

if [ $# -gt 1 ] || [ $# -lt 1 ]
then
   echo "provide only one argument"
else
   cal -m $1
fi
- X ubuntu18 [Running] - Oracle VM VirtualBox File Machine View Input Devices Help Activities Terminal Fri 12:44 madhav@siftw -

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)

Add a comment
Know the answer?
Add Answer to:
Task 2 Write a shell script program call cal3.sh to do the following. 1. Print the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Write 4 simple shell scripts. Each question will ask you to write one or more...

    1. Write 4 simple shell scripts. Each question will ask you to write one or more command lines to solve a problem. Put the command(s) from each problem into a file named problem1.sh, problem2.sh Note that if you want your script to be interpreted by bash, each file should start with the line: #!/bin/bash and will have one (or more, as needed) commands following it. To execute each script in bash, so you can determine if it is working or...

  • Write a program that, given a month and year, prints a calendar, such as June 2016...

    Write a program that, given a month and year, prints a calendar, such as June 2016 Su Mo Tu We Th Fr Sa 5 6 7 8 910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 To find out the weekday of the first day of the month, call this function: Computes the weekday of a given date. @param year the year @param month the month (1=January 12=...

  • R$ ( pseudocode only, I just need the English written pseudocode) Write pseudocode for a program...

    R$ ( pseudocode only, I just need the English written pseudocode) Write pseudocode for a program that prints a calendar such as the following: Su M T W Th F Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

  • a C++ program that computes the cost of a long-distance call. The cost of the call...

    a C++ program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: a. Any call started between 8:00 A.M. and 6:00 P.M., Monday through Friday, is billed at a rate of $0.40 per minute. b. Any call starting before 8:00 A.M. or after 6:00 P.M., Monday through Friday, is charged at a rate of $0.25 per minute. c. Any call started on a Saturday or Sunday is charged...

  • Write a C# program that prints a calendar for a given year. Call this program calendar....

    Write a C# program that prints a calendar for a given year. Call this program calendar. This program needs to use Switch Case in order to call the methods and format to print each month. The program prompts the user for two inputs:       1) The year for which you are generating the calendar.       2) The day of the week that January first is on, you will use the following notation to set the day of the week:      ...

  • Write a C# program that prints a calendar for a given year. Call this program calendar....

    Write a C# program that prints a calendar for a given year. Call this program calendar. The program prompts the user for two inputs:       1) The year for which you are generating the calendar.       2) The day of the week that January first is on, you will use the following notation to set the day of the week:             0 Sunday                     1 Monday                   2 Tuesday                   3 Wednesday       4 Thursday                 5 Friday                      6 Saturday Your program should...

  • Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine...

    Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine library procedures Objectives: 1. using register indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM program to perform the following tasks: 1. Introduce the program. 2. Generate ARRAYSIZE random integers in the range [LO = 10 .. HI = 29], storing them in consecutive elements of an array. ARRAYSIZE should be set to 200....

  • Write a Python program that tests the function main and the functions discussed in parts a...

    Write a Python program that tests the function main and the functions discussed in parts a through g. Create the following lists: inStock - 2D list (row size:10, column size:4) alpha - 1D list with 20 elements. beta - 1D list with 20 elements. gamma = [11, 13, 15, 17] delta = [3, 5, 2, 6, 10, 9, 7, 11, 1, 8] a. Write the definition of the function setZero that initializes any one-dimensional list to 0 (alpha and beta)....

  • Please write a PHP program and use the codes below to come up with the solution...

    Please write a PHP program and use the codes below to come up with the solution provided in the screen shot <!DOCTYPE html> <html> <head> <style> .error {color: #FF0000;} </style> <title> Lab 3 </title> </head> <body> <h1>Birthday Count Down</h1> <form method="post" action="/ITEC4450/Labs/Lab3/Lab3.php"> <p><span class="error">* required field.</span></p> Your name please: <input type="text" name="name" value = "" ><span class="error">* </span><br/><br/> Select the month of your birthday: <select name="month"> <option value="January" >January</option> <option value="February" >February</option> <option value="March" >March</option> <option value="April" >April</option> <option value="May"...

  • (Overnight) Michael McBryan, an experienced auto mechanic, opens his own automotive repair business, Overnight Auto Service....

    (Overnight) Michael McBryan, an experienced auto mechanic, opens his own automotive repair business, Overnight Auto Service. A distinctive feature of Overnight's business is that all repair work is done at night. This strategy offers customers the convenience of dropping off their cars in the evening and picking them up the following morning. Operating at night also enables Overnight to minimize its labor costs. Instead of hiring full-time employees, Overnight offers part-time work to mechanics who already have day jobs at...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT